diff options
author | Patryk Małek <patryk.malek@intel.com> | 2018-03-19 12:28:04 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2018-03-19 12:55:00 -0400 |
commit | 3f8c8437277c51fbd7af175240112f831c590845 (patch) | |
tree | 32abda3d0bcc775b98363214afc51e2c44350bf7 | |
parent | 85925cd0b84eb16cf2dfd730758c3266a243569c (diff) |
i40e: Prevent setting link speed on I40E_DEV_ID_25G_B
Setting link settings on backplane devices shouldn't be allowed.
This patch adds one more device id to the list which we check
that against.
Signed-off-by: Patryk Małek <patryk.malek@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c index d3d299ab9de3..0c7e7de595d3 100644 --- a/drivers/net/ethernet/intel/i40e/i40e_ethtool.c +++ b/drivers/net/ethernet/intel/i40e/i40e_ethtool.c | |||
@@ -860,6 +860,7 @@ static int i40e_set_link_ksettings(struct net_device *netdev, | |||
860 | hw->device_id == I40E_DEV_ID_KX_C || | 860 | hw->device_id == I40E_DEV_ID_KX_C || |
861 | hw->device_id == I40E_DEV_ID_20G_KR2 || | 861 | hw->device_id == I40E_DEV_ID_20G_KR2 || |
862 | hw->device_id == I40E_DEV_ID_20G_KR2_A || | 862 | hw->device_id == I40E_DEV_ID_20G_KR2_A || |
863 | hw->device_id == I40E_DEV_ID_25G_B || | ||
863 | hw->device_id == I40E_DEV_ID_KX_X722) { | 864 | hw->device_id == I40E_DEV_ID_KX_X722) { |
864 | netdev_info(netdev, "Changing settings is not supported on backplane.\n"); | 865 | netdev_info(netdev, "Changing settings is not supported on backplane.\n"); |
865 | return -EOPNOTSUPP; | 866 | return -EOPNOTSUPP; |