Skip to contentSkip to conversation

net/ice/base: fix symmetric asymmetric RSS interference

PATCH In review Qi Zhang 3 participants 4 messages Jul 25, 2020 – Jul 27, 2020 Network drivers

lore
Share & tools
lore

Qi Zhang

author
#0 lore raw

PATCH 1/1 net/ice/base: fix symmetric asymmetric RSS interference

A new symmetric RSS rule may force another asymmetric rule to be symmetric, vise versa. The reason is due to the flow engine will try to reuse the existing profile if the input set matches with the new rule. The fix is to disable this optimization for RSS since we are not at the situation as profile shortage.

Fixes ddae0440353f ("net/ice/base: enable symmetric hash for RSS")
---
 drivers/net/ice/base/ice_flex_pipe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ice/base/ice_flex_pipe.c +3 -3
index 284569464..999ad6be3 100644
@@ -2808,10 +2808,10 @@ ice_find_prof_id_with_mask(struct ice_hw *hw, enum ice_block blk,
 	struct ice_es *es = &hw->blk[blk].es;
 	u8 i;
 
-	/* For FD, we don't want to re-use an existed profile with the same
-	 * field vector and mask. This will cause rule interference.
+	/* For FD and RSS, we don't want to re-use an existed profile with the
+	 * same field vector and mask. This will cause rule interference.
 	 */
-	if (blk == ICE_BLK_FD)
+	if (blk == ICE_BLK_FD || blk == ICE_BLK_RSS)
 		return ICE_ERR_DOES_NOT_EXIST;
 
 	for (i = 0; i < (u8)es->count; i++) {
Signature · 1 line
2.13.6
Tested-by on v1 1/1
#1 lore raw
Quoted 14 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Qi Zhang
Sent: Saturday, July 25, 2020 8:14 PM
To: Yang, Qiming <[email protected]>
Cc: Su, Simei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/ice/base: fix symmetric asymmetric RSS interference

A new symmetric RSS rule may force another asymmetric rule to be symmetric, vise versa. The reason is due to the flow engine will try to reuse the existing profile if the input set matches with the new rule. The fix is to disable this optimization for RSS since we are not at the situation as profile shortage.

Quoted 8 lines
Fixes ddae0440353f ("net/ice/base: enable symmetric hash for RSS")
---
 drivers/net/ice/base/ice_flex_pipe.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 2 lines

--
2.13.6

Acked-by
#2 lore raw
Quoted 17 lines · Nannan
Quoted 17 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Qi Zhang
Sent: Saturday, July 25, 2020 8:14 PM
To: Yang, Qiming <[email protected]>
Cc: Su, Simei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/ice/base: fix symmetric asymmetric RSS interference

A new symmetric RSS rule may force another asymmetric rule to be symmetric, vise versa. The reason is due to the flow engine will try to reuse the existing profile if the input set matches with the new rule. The fix is to disable this optimization for RSS since we are not at the situation as profile shortage.

Fixes ddae0440353f ("net/ice/base: enable symmetric hash for RSS")
Quoted 6 lines
Quoted 5 lines
---
  drivers/net/ice/base/ice_flex_pipe.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 3 lines
Quoted 3 lines

--
2.13.6

author Applied
#3 lore raw
Quoted 12 lines

-----Original Message-----
From: Guo, Jia <[email protected]>
Sent: Monday, July 27, 2020 11:32 AM
To: Lu, Nannan <[email protected]>; Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: Su, Simei <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ice/base: fix symmetric asymmetric RSS interference

Quoted 12 lines
Quoted 11 lines · Nannan
Quoted 11 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Qi Zhang
Sent: Saturday, July 25, 2020 8:14 PM
To: Yang, Qiming <[email protected]>
Cc: Su, Simei <[email protected]>; [email protected]; Zhang, Qi Z <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/ice/base: fix symmetric asymmetric RSS interference

A new symmetric RSS rule may force another asymmetric rule to be symmetric, vise versa. The reason is due to the flow engine will try

vice versa.

Quoted 12 lines
Quoted 2 lines
Quoted 2 lines

to reuse the existing profile if the input set matches with the new rule. The fix is to disable this optimization for RSS since we are not at the

situation as profile shortage.

Quoted 9 lines
Quoted 9 lines
Fixes ddae0440353f ("net/ice/base: enable symmetric hash for RSS")
---
  drivers/net/ice/base/ice_flex_pipe.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 4 lines
Quoted 1 line

Applied to dpdk-next-net-intel.

Thanks
Qi

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
2.13.6