summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-02-25 15:53:38 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2016-02-25 15:53:38 -0600
commit212e5ba9b33f31b5e7cdc664657f9aaea52e8ce3 (patch)
tree75a737fed95738ff961f2b3a55e71bad42e8e6c7 /sys/dev
parent1e866bb85ba511f59e3877e8ee5ede4edb7aae30 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/dev/ixgbe/ixgbe_common.c5
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;
}
OpenPOWER on IntegriCloud