i40e: fix the restart auto-negotiation after FEC modified
Subsystems (2)
PATCH 1/1 i40e: fix the restart auto-negotiation after FEC modified
From: Jaroslaw Gawin <[email protected]>
When FEC mode was changed the link didn't know it because the link was not reset and new parameters were not negotiated. Set a flag 'I40E_AQ_PHY_ENABLE_ATOMIC_LINK' in 'abilities' to restart the link and make it run with the new settings.
--- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +2 -1
@@ -1409,7 +1409,8 @@ static int i40e_set_fec_cfg(struct net_device *netdev, u8 fec_cfg)memset (&config,0 ,sizeof (config)); config.phy_type = abilities.phy_type; - config.abilities = abilities.abilities; + config.abilities = abilities.abilities | +I40E_AQ_PHY_ENABLE_ATOMIC_LINK ; config.phy_type_ext = abilities.phy_type_ext; config.link_speed = abilities.link_speed; config.eee_capability = abilities.eee_capability;
Signature · 1 line
2.17.1
Nguyen
PATCH 1/1 i40e: fix the restart auto-negotiation after FEC modified
Quoted 9 lines · Mateusz Palczewski
From: Jaroslaw Gawin <[email protected]>
When FEC mode was changed the link didn't know it because the link was not reset and new parameters were not negotiated. Set a flag '
I40E_AQ_PHY_ENABLE_ATOMIC_LINK' in 'abilities' to restart the link and make it run with the new settings.Fixes 1d96340196f1 ("Add support FEC configuration for Fortville25G")
The fixes is incorrect, it should match exactly don't drop anything.
25G")
Please fix this up and resend.
Quoted 2 lines
Signed-off-by Jaroslaw Gawin <[email protected]>Signed-off-by Mateusz Palczewski <[email protected]>