summaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe_82599.c
diff options
context:
space:
mode:
authorEmil Tantilov2011-02-26 07:40:16 +0100
committerJeff Kirsher2011-03-08 03:06:43 +0100
commit0b0c2b31bdf8d6fb5c14ae70894453ac44d64672 (patch)
tree6e15145a52fc22d6701ef3db85e6cab05c39ef24 /drivers/net/ixgbe/ixgbe_82599.c
parentixgbe: Add x540 statistic counter definitions (diff)
downloadkernel-qcow2-linux-0b0c2b31bdf8d6fb5c14ae70894453ac44d64672.tar.gz
kernel-qcow2-linux-0b0c2b31bdf8d6fb5c14ae70894453ac44d64672.tar.xz
kernel-qcow2-linux-0b0c2b31bdf8d6fb5c14ae70894453ac44d64672.zip
ixgbe: Enable flow control pause parameter auto-negotiation support
This patch enables flow control pause parameters auto-negotiation support to 82599 based 10G Base-T, backplane devices and multi-speed fiber optics modules at 1G speed Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Stephen Ko <stephen.s.ko@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_82599.c')
-rw-r--r--drivers/net/ixgbe/ixgbe_82599.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_82599.c b/drivers/net/ixgbe/ixgbe_82599.c
index 2f8b9f41714f..00aeba385a2f 100644
--- a/drivers/net/ixgbe/ixgbe_82599.c
+++ b/drivers/net/ixgbe/ixgbe_82599.c
@@ -772,6 +772,9 @@ static s32 ixgbe_setup_mac_link_82599(struct ixgbe_hw *hw,
/* Check to see if speed passed in is supported. */
hw->mac.ops.get_link_capabilities(hw, &link_capabilities, &autoneg);
+ if (status != 0)
+ goto out;
+
speed &= link_capabilities;
if (speed == IXGBE_LINK_SPEED_UNKNOWN) {