Skip to contentSkip to conversation

net/i40e: fix L2 payload RSS mask input set

PATCH Applied Alvin Zhang 3 participants 3 messages Jun 18, 2021 – Jun 22, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix L2 payload RSS mask input set

Allow VLAN tag being added to L2 payload packet type RSS input set.

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
---
 drivers/net/i40e/i40e_hash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_hash.c +2 -2
index b1cb24f..722edc9 100644
@@ -201,11 +201,11 @@ struct i40e_hash_match_pattern {
 #define I40E_HASH_MAP_CUS_PATTERN(pattern, rss_mask, cus_pctype) { \
 	pattern, rss_mask, true, cus_pctype }
 
-#define I40E_HASH_L2_RSS_MASK		(ETH_RSS_ETH | ETH_RSS_L2_SRC_ONLY | \
+#define I40E_HASH_L2_RSS_MASK		(ETH_RSS_VLAN | ETH_RSS_ETH | \
+					ETH_RSS_L2_SRC_ONLY | \
 					ETH_RSS_L2_DST_ONLY)
 
 #define I40E_HASH_L23_RSS_MASK		(I40E_HASH_L2_RSS_MASK | \
-					ETH_RSS_VLAN | \
 					ETH_RSS_L3_SRC_ONLY | \
 					ETH_RSS_L3_DST_ONLY)
 
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 42 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Friday, June 18, 2021 4:38 PM
To: Xing, Beilei <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [PATCH] net/i40e: fix L2 payload RSS mask input set

Allow VLAN tag being added to L2 payload packet type RSS input set.

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
---
 drivers/net/i40e/i40e_hash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/i40e/i40e_hash.c +2 -2
index b1cb24f..722edc9 100644
@@ -201,11 +201,11 @@ struct i40e_hash_match_pattern {  #define
 I40E_HASH_MAP_CUS_PATTERN(pattern, rss_mask, cus_pctype) { \
 	pattern, rss_mask, true, cus_pctype }
 
-#define I40E_HASH_L2_RSS_MASK		(ETH_RSS_ETH |
 ETH_RSS_L2_SRC_ONLY | \
+#define I40E_HASH_L2_RSS_MASK		(ETH_RSS_VLAN |
 ETH_RSS_ETH | \
+					ETH_RSS_L2_SRC_ONLY | \
 					ETH_RSS_L2_DST_ONLY)
 
 #define I40E_HASH_L23_RSS_MASK		(I40E_HASH_L2_RSS_MASK |
 \
-					ETH_RSS_VLAN | \
drivers/net/i40e/i40e_hash.c +0 -1
 					ETH_RSS_L3_SRC_ONLY | \
 					ETH_RSS_L3_DST_ONLY)
 
--
Quoted 1 line

1.8.3.1

Applied
#2 lore raw
Quoted 50 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Xing, Beilei
Sent: Monday, June 21, 2021 4:39 PM
To: Zhang, AlvinX <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix L2 payload RSS mask input set

Quoted 39 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Friday, June 18, 2021 4:38 PM
To: Xing, Beilei <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [PATCH] net/i40e: fix L2 payload RSS mask input set

Allow VLAN tag being added to L2 payload packet type RSS input set.

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
---
 drivers/net/i40e/i40e_hash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/net/i40e/i40e_hash.c index b1cb24f..722edc9 100644

drivers/net/i40e/i40e_hash.c +2 -2
@@ -201,11 +201,11 @@ struct i40e_hash_match_pattern {  #define
 I40E_HASH_MAP_CUS_PATTERN(pattern, rss_mask, cus_pctype) { \
 	pattern, rss_mask, true, cus_pctype }
 
-#define I40E_HASH_L2_RSS_MASK		(ETH_RSS_ETH |
 ETH_RSS_L2_SRC_ONLY | \
+#define I40E_HASH_L2_RSS_MASK		(ETH_RSS_VLAN |
 ETH_RSS_ETH | \
+					ETH_RSS_L2_SRC_ONLY | \
 					ETH_RSS_L2_DST_ONLY)
 
 #define I40E_HASH_L23_RSS_MASK		(I40E_HASH_L2_RSS_MASK |
 \
-					ETH_RSS_VLAN | \
drivers/net/i40e/i40e_hash.c +0 -0
 					ETH_RSS_L3_SRC_ONLY | \
 					ETH_RSS_L3_DST_ONLY)
Quoted 4 lines
Quoted 2 lines

--
1.8.3.1

Applied to dpdk-next-net-intel.

Thanks
Qi