]> git.hungrycats.org Git - linux/commit
i40e: fix the restart auto-negotiation after FEC modified
authorJaroslaw Gawin <jaroslawx.gawin@intel.com>
Tue, 13 Apr 2021 14:19:40 +0000 (14:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:48 +0000 (10:29 +0200)
commit0d17d531948fdd41925f09827d577a8d63a96b23
treedeb385b17384a55f7b49dd56b4e16f0dfd4c273a
parent4ebc10aa7cd17fd9857dedac69600465c9dd16d1
i40e: fix the restart auto-negotiation after FEC modified

[ Upstream commit 61343e6da7810de81d6b826698946ae4f9070819 ]

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 ("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>
drivers/net/ethernet/intel/i40e/i40e_ethtool.c