]> git.karo-electronics.de Git - linux-beck.git/commitdiff
i40e: Use new 40G speeds
authorGreg Rose <gregory.v.rose@intel.com>
Tue, 7 Apr 2015 23:45:41 +0000 (19:45 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Apr 2015 03:47:39 +0000 (20:47 -0700)
The kernel has added SPEED_40000 for ethtool.
Go ahead and use the new #define.

Change-ID: Ic7e16e5c9e91085afe539f11ee1b7668adc4d0ef
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Jim Young <james.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c

index 7d60587850d9ca422594e8698e7658c5da0539db..4cbaaeb902c47737274010d2070d6fb95c5637ce 100644 (file)
@@ -356,8 +356,7 @@ static void i40e_get_settings_link_up(struct i40e_hw *hw,
        /* Set speed and duplex */
        switch (link_speed) {
        case I40E_LINK_SPEED_40GB:
-               /* need a SPEED_40000 in ethtool.h */
-               ethtool_cmd_speed_set(ecmd, 40000);
+               ethtool_cmd_speed_set(ecmd, SPEED_40000);
                break;
        case I40E_LINK_SPEED_20GB:
                ethtool_cmd_speed_set(ecmd, SPEED_20000);