mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
i40e: Allow user to change link settings if link is down
Allow the user to change auto-negotiation and speed settings if link is down. Change-ID: I372967c627682b5e1835f623a7cbf41b21b51043 Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com> Tested-by: Jim Young <jamesx.m.young@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
124ed15bf1
commit
c57e9f179b
@ -466,7 +466,8 @@ static int i40e_set_settings(struct net_device *netdev,
|
|||||||
|
|
||||||
if (hw->phy.media_type != I40E_MEDIA_TYPE_BASET &&
|
if (hw->phy.media_type != I40E_MEDIA_TYPE_BASET &&
|
||||||
hw->phy.media_type != I40E_MEDIA_TYPE_FIBER &&
|
hw->phy.media_type != I40E_MEDIA_TYPE_FIBER &&
|
||||||
hw->phy.media_type != I40E_MEDIA_TYPE_BACKPLANE)
|
hw->phy.media_type != I40E_MEDIA_TYPE_BACKPLANE &&
|
||||||
|
hw->phy.link_info.link_info & I40E_AQ_LINK_UP)
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
/* get our own copy of the bits to check against */
|
/* get our own copy of the bits to check against */
|
||||||
|
Loading…
Reference in New Issue
Block a user