Skip to content

Commit 06ef93b

Browse files
jgawinxgregkh
authored andcommitted
i40e: fix the restart auto-negotiation after FEC modified
[ Upstream commit 61343e6 ] 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: 1d96340 ("i40e: Add support FEC configuration for Fortville 25G") Signed-off-by: Jaroslaw Gawin <jaroslawx.gawin@intel.com> Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com> Tested-by: Dave Switzer <david.switzer@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 829a713 commit 06ef93b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/net/ethernet/intel/i40e/i40e_ethtool.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,8 @@ static int i40e_set_fec_cfg(struct net_device *netdev, u8 fec_cfg)
14091409

14101410
memset(&config, 0, sizeof(config));
14111411
config.phy_type = abilities.phy_type;
1412-
config.abilities = abilities.abilities;
1412+
config.abilities = abilities.abilities |
1413+
I40E_AQ_PHY_ENABLE_ATOMIC_LINK;
14131414
config.phy_type_ext = abilities.phy_type_ext;
14141415
config.link_speed = abilities.link_speed;
14151416
config.eee_capability = abilities.eee_capability;

0 commit comments

Comments
 (0)