diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2016-02-25 15:53:38 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2016-02-25 15:53:38 -0600 |
commit | 212e5ba9b33f31b5e7cdc664657f9aaea52e8ce3 (patch) | |
tree | 75a737fed95738ff961f2b3a55e71bad42e8e6c7 /sys/dev/ixgbe/ixgbe_common.c | |
parent | 1e866bb85ba511f59e3877e8ee5ede4edb7aae30 (diff) | |
download | FreeBSD-src-212e5ba9b33f31b5e7cdc664657f9aaea52e8ce3.zip FreeBSD-src-212e5ba9b33f31b5e7cdc664657f9aaea52e8ce3.tar.gz |
apply r295094 after latest import:
Fix ixgbe flow control autoneg reporting
Spotted by: Jorge Oliveira
Diffstat (limited to 'sys/dev/ixgbe/ixgbe_common.c')
-rw-r--r-- | sys/dev/ixgbe/ixgbe_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe_common.c b/sys/dev/ixgbe/ixgbe_common.c index 04b8ea6..13a5825 100644 --- a/sys/dev/ixgbe/ixgbe_common.c +++ b/sys/dev/ixgbe/ixgbe_common.c @@ -199,9 +199,12 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw) break; } - ERROR_REPORT2(IXGBE_ERROR_UNSUPPORTED, + if (!supported) { + ERROR_REPORT2(IXGBE_ERROR_UNSUPPORTED, "Device %x does not support flow control autoneg", hw->device_id); + } + return supported; } |