Skip to contentSkip to conversation

ice: alter feature support check for SRIOV and LAG

PATCH Superseded Dave Ertman 3 participants 7 messages Dec 7, 2023 – Dec 11, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: alter feature support check for SRIOV and LAG

Previously, the ice driver had support for using a hanldler for bonding netdev events to ensure that conflicting features were not allowed to be activated at the same time. While this was still in place, additional support was added to specifically support SRIOV and LAG together. These both utilized the netdev event handler, but the SRIOV and LAG feature was behind a capabilities feature check to make sure the current NVM has support.

The exclusion part of the event handler should be removed since there are users who have custom made solutions that depend on the non-exclusion of features.

Wrap the creation/registration and cleanup of the event handler and associated structs in the probe flow with a feature check so that the only systems that support the full implementation of LAG features will initialize support. This will leave other systems unhindered with functionality as it existed before any LAG code was added.

---
 drivers/net/ethernet/intel/ice/ice_lag.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/ice/ice_lag.c +2 -0
index 280994ee5933..b47cd43ae871 100644
@@ -1981,6 +1981,8 @@ int ice_init_lag(struct ice_pf *pf)
 	int n, err;
 
 	ice_lag_init_feature_support_flag(pf);
+	if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG))
+		return 0;
 
 	pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL);
 	if (!pf->lag)
Signature · 1 line
2.40.1
maintainer
#1 lore raw
Quoted 12 lines · Dave Ertman

Previously, the ice driver had support for using a hanldler for bonding netdev events to ensure that conflicting features were not allowed to be activated at the same time. While this was still in place, additional support was added to specifically support SRIOV and LAG together. These both utilized the netdev event handler, but the SRIOV and LAG feature was behind a capabilities feature check to make sure the current NVM has support.

The exclusion part of the event handler should be removed since there are users who have custom made solutions that depend on the non-exclusion of features.

Quoted 5 lines

Wrap the creation/registration and cleanup of the event handler and associated structs in the probe flow with a feature check so that the only systems that support the full implementation of LAG features will initialize support. This will leave other systems unhindered with functionality as it existed before any LAG code was added.

This sounds like a bug fix? Should it be for iwl-net?

Quoted 19 lines
---
  drivers/net/ethernet/intel/ice/ice_lag.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/net/ethernet/intel/ice/ice_lag.c +2 -0
index 280994ee5933..b47cd43ae871 100644
@@ -1981,6 +1981,8 @@ int ice_init_lag(struct ice_pf *pf)
  	int n, err;
 
  	ice_lag_init_feature_support_flag(pf);
+	if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG))
+		return 0;
 
  	pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL);
  	if (!pf->lag)
#2 lore raw
Quoted 26 lines

-----Original Message-----
From: Nguyen, Anthony L <[email protected]>
Sent: Friday, December 8, 2023 1:18 PM
To: Ertman, David M <[email protected]>; intel-wired- [email protected]
Cc: [email protected]; Brandeburg, Jesse <[email protected]>
Subject: Re: [PATCH iwl-next] ice: alter feature support check for SRIOV and LAG

Quoted 10 lines · Dave Ertman

Previously, the ice driver had support for using a hanldler for bonding netdev events to ensure that conflicting features were not allowed to be activated at the same time. While this was still in place, additional support was added to specifically support SRIOV and LAG together. These both utilized the netdev event handler, but the SRIOV and LAG feature was behind a capabilities feature check to make sure the current NVM has support.

The exclusion part of the event handler should be removed since there are users who have custom made solutions that depend on the non-exclusion

of

Quoted 2 lines

features.

Quoted 8 lines
Quoted 5 lines

Wrap the creation/registration and cleanup of the event handler and associated structs in the probe flow with a feature check so that the only systems that support the full implementation of LAG features will initialize support. This will leave other systems unhindered with functionality as it existed before any LAG code was added.

This sounds like a bug fix? Should it be for iwl-net?

To my knowledge, this issue has not been reported by any users and was found through code inspection. Would you still recommend iwl-net?

DaveE

Quoted 20 lines

Review

Quoted 7 lines
---
  drivers/net/ethernet/intel/ice/ice_lag.c | 2 ++
  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ethernet/intel/ice/ice_lag.c

Quoted 12 lines

index 280994ee5933..b47cd43ae871 100644

drivers/net/ethernet/intel/ice/ice_lag.c +2 -0
@@ -1981,6 +1981,8 @@ int ice_init_lag(struct ice_pf *pf)
  	int n, err;
 
  	ice_lag_init_feature_support_flag(pf);
+	if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG))
+		return 0;
 
  	pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL);
  	if (!pf->lag)
#3 lore raw
Quoted 32 lines · David M
Quoted 32 lines

-----Original Message-----
From: Nguyen, Anthony L <[email protected]>
Sent: Friday, December 8, 2023 1:18 PM
To: Ertman, David M <[email protected]>; intel-wired- [email protected]
Cc: [email protected]; Brandeburg, Jesse <[email protected]>
Subject: Re: [PATCH iwl-next] ice: alter feature support check for SRIOV and LAG

Quoted 10 lines · Dave Ertman

Previously, the ice driver had support for using a hanldler for bonding netdev events to ensure that conflicting features were not allowed to be activated at the same time. While this was still in place, additional support was added to specifically support SRIOV and LAG together. These both utilized the netdev event handler, but the SRIOV and LAG feature was behind a capabilities feature check to make sure the current NVM has support.

The exclusion part of the event handler should be removed since there are users who have custom made solutions that depend on the non-exclusion

of

Quoted 7 lines

features.

Wrap the creation/registration and cleanup of the event handler and associated structs in the probe flow with a feature check so that the only systems that support the full implementation of LAG features will initialize support. This will leave other systems unhindered with functionality as it existed before any LAG code was added.

Quoted 5 lines
Quoted 2 lines

This sounds like a bug fix? Should it be for iwl-net?

To my knowledge, this issue has not been reported by any users and was found through code inspection. Would you still recommend iwl-net?

We have a customer experiencing intermittent issues with
transmit timeouts that go away if we disable the LAG integration as suggested at [0] (or don't use bonding). This is on the Ubuntu 5.15 based distro kernel, not upstream, but it does not manifest with the OOT driver, and seems somehow related to the LAG offloading functionality.

There was also a post to the list describing similar effects
last month [1], that one seems to be on an Ubuntu 6.2 distro kernel.

Could these issues be plausibly related to the change in this
patch?

	-J

[0]
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2036239/comments/40
[1]
https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-20231120/038096.html

Quoted 16 lines

DaveE

Quoted 14 lines

Review

Quoted 7 lines
---
  drivers/net/ethernet/intel/ice/ice_lag.c | 2 ++
  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ethernet/intel/ice/ice_lag.c

Quoted 6 lines

index 280994ee5933..b47cd43ae871 100644

drivers/net/ethernet/intel/ice/ice_lag.c +0 -0
@@ -1981,6 +1981,8 @@ int ice_init_lag(struct ice_pf *pf)
  	int n, err;
 
Quoted 6 lines
Quoted 6 lines

drivers/net/ethernet/intel/ice/ice_lag.c int ice_init_lag(struct ice_pf *pf) · line 1988

Quoted 6 lines
drivers/net/ethernet/intel/ice/ice_lag.c +2 -0
  	ice_lag_init_feature_support_flag(pf);
+	if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG))
+		return 0;
 
  	pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL);
  	if (!pf->lag)

---
-Jay Vosburgh, [email protected]

#4 lore raw
Quoted 64 lines

-----Original Message-----
From: Jay Vosburgh <[email protected]>
Sent: Friday, December 8, 2023 3:31 PM
To: Ertman, David M <[email protected]>
Cc: Nguyen, Anthony L <[email protected]>; intel-wired- [email protected]; [email protected]; Brandeburg, Jesse <[email protected]>; Robert Malz <[email protected]>; Heitor Alves de Siqueira <[email protected]>
Subject: Re: [PATCH iwl-next] ice: alter feature support check for SRIOV and LAG

Quoted 8 lines · David M
Quoted 8 lines

-----Original Message-----
From: Nguyen, Anthony L <[email protected]>
Sent: Friday, December 8, 2023 1:18 PM
To: Ertman, David M <[email protected]>; intel-wired- [email protected]
Cc: [email protected]; Brandeburg, Jesse <[email protected]>
Subject: Re: [PATCH iwl-next] ice: alter feature support check for SRIOV

and

Quoted 7 lines
Quoted 7 lines

LAG

Quoted 2 lines · Dave Ertman

Previously, the ice driver had support for using a hanldler for bonding netdev events to ensure that conflicting features were not allowed to

be

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

activated at the same time. While this was still in place, additional support was added to specifically support SRIOV and LAG together.

These

Quoted 1 line
Quoted 1 line
Quoted 1 line

both utilized the netdev event handler, but the SRIOV and LAG feature

was

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

behind a capabilities feature check to make sure the current NVM has support.

The exclusion part of the event handler should be removed since there

are

Quoted 1 line
Quoted 1 line
Quoted 1 line

users who have custom made solutions that depend on the non-

exclusion

Quoted 9 lines
Quoted 9 lines

of

Quoted 7 lines

features.

Wrap the creation/registration and cleanup of the event handler and associated structs in the probe flow with a feature check so that the only systems that support the full implementation of LAG features will initialize support. This will leave other systems unhindered with functionality as it existed before any LAG code was added.

Quoted 4 lines
Quoted 2 lines

This sounds like a bug fix? Should it be for iwl-net?

To my knowledge, this issue has not been reported by any users and was

found

Quoted 1 line

through code inspection. Would you still recommend iwl-net?

We have a customer experiencing intermittent issues with
transmit timeouts that go away if we disable the LAG integration as suggested at [0] (or don't use bonding). This is on the Ubuntu 5.15 based distro kernel, not upstream, but it does not manifest with the OOT driver, and seems somehow related to the LAG offloading functionality.

Quoted 8 lines

There was also a post to the list describing similar effects
last month [1], that one seems to be on an Ubuntu 6.2 distro kernel.

Could these issues be plausibly related to the change in this
patch?

	-J

From your description, it is plausibly related to this patch. Looks like we should also send this to iwl-net.

Tony, do you need me to do anything to facilitate this?

DaveE

Quoted 34 lines

[0]
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2036239/comment
s/40
[1]
https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-
20231120/038096.html

Quoted 16 lines

DaveE

Quoted 14 lines

Review

Quoted 7 lines
---
  drivers/net/ethernet/intel/ice/ice_lag.c | 2 ++
  1 file changed, 2 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ethernet/intel/ice/ice_lag.c

Quoted 6 lines

index 280994ee5933..b47cd43ae871 100644

drivers/net/ethernet/intel/ice/ice_lag.c +0 -0
@@ -1981,6 +1981,8 @@ int ice_init_lag(struct ice_pf *pf)
  	int n, err;
 
Quoted 6 lines
Quoted 6 lines

drivers/net/ethernet/intel/ice/ice_lag.c int ice_init_lag(struct ice_pf *pf) · line 1988

Quoted 6 lines
drivers/net/ethernet/intel/ice/ice_lag.c +2 -0
  	ice_lag_init_feature_support_flag(pf);
+	if (!ice_is_feature_supported(pf, ICE_F_SRIOV_LAG))
+		return 0;
 
  	pf->lag = kzalloc(sizeof(*lag), GFP_KERNEL);
  	if (!pf->lag)

---
-Jay Vosburgh, [email protected]

maintainer
#5 lore raw
Quoted 5 lines · David M

From your description, it is plausibly related to this patch. Looks like we should also
send this to iwl-net.

Tony, do you need me to do anything to facilitate this?

This applies ok to iwl-net so we're ok in that regards. I do need an accompanying Fixes for net though; I believe it's bb52f42acef6 ("ice: Add driver support for firmware changes for LAG")?

Thanks,
Tony

#6 lore raw
Quoted 18 lines

-----Original Message-----
From: Nguyen, Anthony L <[email protected]>
Sent: Monday, December 11, 2023 1:12 PM
To: Ertman, David M <[email protected]>; Jay Vosburgh <[email protected]>
Cc: [email protected]; [email protected]; Brandeburg, Jesse <[email protected]>; Robert Malz <[email protected]>; Heitor Alves de Siqueira <[email protected]>
Subject: Re: [PATCH iwl-next] ice: alter feature support check for SRIOV and LAG

Quoted 2 lines · David M

From your description, it is plausibly related to this patch. Looks like we

should also

Quoted 2 lines

send this to iwl-net.

Quoted 8 lines
Quoted 1 line

Tony, do you need me to do anything to facilitate this?

This applies ok to iwl-net so we're ok in that regards. I do need an accompanying Fixes for net though; I believe it's bb52f42acef6 ("ice:
Add driver support for firmware changes for LAG")?

Thanks,
Tony

Sending out v2 - thanks for the help Tony!

DaveE