Skip to contentSkip to conversation

i40e: fix the restart auto-negotiation after FEC modified

PATCH New Mateusz Palczewski 2 participants 3 messages Apr 13, 2021 – May 3, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

Fixes 1d96340196f1 ("i40e: Add support FEC configuration for Fortville

25G")

---
v2: Fixed fixes tag

---
 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
index fe5befa..1ccf0dc 100644
@@ -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
#1 lore raw

PATCH v2 1/1 i40e: fix the restart auto-negotiation after FEC modified

Quoted 10 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 ("i40e: Add support FEC configuration for

Fortville
25G")

I've fixed this up but please note that the tag should not be wrapped.

"Do not split the tag across multiple lines, tags are exempt from the wrap at 75 columns rule in order to simplify parsing scripts."

https://www.kernel.org/doc/html/latest/process/submitting-patches.html

Quoted 2 lines
#2 lore raw

PATCH v2 1/1 i40e: fix the restart auto-negotiation after FEC modified

In reply to Mateusz Palczewski
Quoted 5 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Mateusz Palczewski
Sent: Tuesday, April 13, 2021 7:20 AM

To: [email protected]

Quoted 13 lines

Cc: Gawin, JaroslawX <[email protected]>; Palczewski, Mateusz <[email protected]>
Subject: [Intel-wired-lan] [PATCH net v2] 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.

Fixes 1d96340196f1 ("i40e: Add support FEC configuration for Fortville
Quoted 9 lines

25G")

---
v2: Fixed fixes tag
---
drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 3 ++-

1 file changed, 2 insertions(+), 1 deletion(-)