diff options
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_ethtool.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_ethtool.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ixgbe/ixgbe_ethtool.c b/drivers/net/ixgbe/ixgbe_ethtool.c index 7279345b1ed7..c52243d67edc 100644 --- a/drivers/net/ixgbe/ixgbe_ethtool.c +++ b/drivers/net/ixgbe/ixgbe_ethtool.c | |||
@@ -346,9 +346,10 @@ static int ixgbe_set_settings(struct net_device *netdev, | |||
346 | } | 346 | } |
347 | } else { | 347 | } else { |
348 | /* in this case we currently only support 10Gb/FULL */ | 348 | /* in this case we currently only support 10Gb/FULL */ |
349 | u32 speed = ethtool_cmd_speed(ecmd); | ||
349 | if ((ecmd->autoneg == AUTONEG_ENABLE) || | 350 | if ((ecmd->autoneg == AUTONEG_ENABLE) || |
350 | (ecmd->advertising != ADVERTISED_10000baseT_Full) || | 351 | (ecmd->advertising != ADVERTISED_10000baseT_Full) || |
351 | (ecmd->speed + ecmd->duplex != SPEED_10000 + DUPLEX_FULL)) | 352 | (speed + ecmd->duplex != SPEED_10000 + DUPLEX_FULL)) |
352 | return -EINVAL; | 353 | return -EINVAL; |
353 | } | 354 | } |
354 | 355 | ||