diff options
Diffstat (limited to 'drivers/net/ixgbevf/vf.c')
-rw-r--r-- | drivers/net/ixgbevf/vf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ixgbevf/vf.c b/drivers/net/ixgbevf/vf.c index 852e9c4fd934..f6f929958ba0 100644 --- a/drivers/net/ixgbevf/vf.c +++ b/drivers/net/ixgbevf/vf.c | |||
@@ -359,7 +359,8 @@ static s32 ixgbevf_check_mac_link_vf(struct ixgbe_hw *hw, | |||
359 | else | 359 | else |
360 | *link_up = false; | 360 | *link_up = false; |
361 | 361 | ||
362 | if (links_reg & IXGBE_LINKS_SPEED) | 362 | if ((links_reg & IXGBE_LINKS_SPEED_82599) == |
363 | IXGBE_LINKS_SPEED_10G_82599) | ||
363 | *speed = IXGBE_LINK_SPEED_10GB_FULL; | 364 | *speed = IXGBE_LINK_SPEED_10GB_FULL; |
364 | else | 365 | else |
365 | *speed = IXGBE_LINK_SPEED_1GB_FULL; | 366 | *speed = IXGBE_LINK_SPEED_1GB_FULL; |