Skip to contentSkip to conversation

net/i40e: fix IPv6 fragment RSS offload type in flow

PATCH Applied Alvin Zhang 4 participants 9 messages Oct 12, 2021 – Oct 19, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: fix IPv6 fragment RSS offload type in flow

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
---
 drivers/net/i40e/i40e_hash.c | 9 +++++++++
 1 file changed, 9 insertions(+)
drivers/net/i40e/i40e_hash.c +9 -0
index 6579b1a..508a2cf 100644
@@ -28,6 +28,7 @@
 #define I40E_HASH_HDR_ETH		0x01ULL
 #define I40E_HASH_HDR_IPV4		0x10ULL
 #define I40E_HASH_HDR_IPV6		0x20ULL
+#define I40E_HASH_HDR_IPV6_FRAG		0x40ULL
 #define I40E_HASH_HDR_TCP		0x100ULL
 #define I40E_HASH_HDR_UDP		0x200ULL
 #define I40E_HASH_HDR_SCTP		0x400ULL
@@ -54,6 +55,8 @@
 
 /* IPv6 */
 #define I40E_PHINT_IPV6			(I40E_HASH_HDR_ETH | I40E_HASH_HDR_IPV6)
+#define I40E_PHINT_IPV6_FRAG		(I40E_HASH_HDR_ETH | \
+					 I40E_HASH_HDR_IPV6_FRAG)
 #define I40E_PHINT_IPV6_TCP		(I40E_PHINT_IPV6 | I40E_HASH_HDR_TCP)
 #define I40E_PHINT_IPV6_UDP		(I40E_PHINT_IPV6 | I40E_HASH_HDR_UDP)
 #define I40E_PHINT_IPV6_SCTP		(I40E_PHINT_IPV6 | I40E_HASH_HDR_SCTP)
@@ -149,6 +152,7 @@ struct i40e_hash_map_rss_inset {
 
 #define I40E_HASH_ETH_NEXT_ALLOW	(BIT_ULL(RTE_FLOW_ITEM_TYPE_IPV4) | \
 					BIT_ULL(RTE_FLOW_ITEM_TYPE_IPV6) | \
+					BIT_ULL(RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT) | \
 					BIT_ULL(RTE_FLOW_ITEM_TYPE_VLAN))
 
 #define I40E_HASH_IP_NEXT_ALLOW		(BIT_ULL(RTE_FLOW_ITEM_TYPE_TCP) | \
@@ -177,6 +181,7 @@ struct i40e_hash_map_rss_inset {
 	[RTE_FLOW_ITEM_TYPE_ETH] = I40E_HASH_HDR_ETH,
 	[RTE_FLOW_ITEM_TYPE_IPV4] = I40E_HASH_HDR_IPV4,
 	[RTE_FLOW_ITEM_TYPE_IPV6] = I40E_HASH_HDR_IPV6,
+	[RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT] = I40E_HASH_HDR_IPV6_FRAG,
 	[RTE_FLOW_ITEM_TYPE_TCP] = I40E_HASH_HDR_TCP,
 	[RTE_FLOW_ITEM_TYPE_UDP] = I40E_HASH_HDR_UDP,
 	[RTE_FLOW_ITEM_TYPE_SCTP] = I40E_HASH_HDR_SCTP,
@@ -270,6 +275,10 @@ struct i40e_hash_match_pattern {
 			      I40E_HASH_IPV6_L23_RSS_MASK,
 			      I40E_FILTER_PCTYPE_NONF_IPV6_OTHER),
 
+	I40E_HASH_MAP_PATTERN(I40E_PHINT_IPV6_FRAG,
+			      ETH_RSS_FRAG_IPV6 | I40E_HASH_L23_RSS_MASK,
+			      I40E_FILTER_PCTYPE_FRAG_IPV6),
+
 	I40E_HASH_MAP_PATTERN(I40E_PHINT_IPV6_TCP,
 			      ETH_RSS_NONFRAG_IPV6_TCP |
 			      I40E_HASH_IPV6_L234_RSS_MASK,
Signature · 1 line
1.8.3.1
Tested-by on v1 1/1
#1 lore raw
Quoted 15 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Alvin Zhang
Sent: Tuesday, October 12, 2021 4:40 PM
To: Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Quoted 4 lines
Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
Acked-by Applied
#2 lore raw
Quoted 27 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Jiang, YuX
Sent: Friday, October 15, 2021 5:37 PM
To: Zhang, AlvinX <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 16 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of Alvin Zhang
Sent: Tuesday, October 12, 2021 4:40 PM
To: Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [dpdk-dev] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

To keep flow format uniform with ice, this patch adds support for this RSS
rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Quoted 5 lines
Quoted 4 lines
Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")

Applied to dpdk-next-net-intel.

Thanks
Qi

#3 lore raw
In reply to Alvin Zhang
Quoted 9 lines · Alvin Zhang

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")

'./devtools/check-doc-vs-code.sh' script is failing [1], can you please fix it?

[1]

$ ./devtools/check-doc-vs-code.sh
rte_flow doc out of sync for i40e
        item ipv6_frag_ext
#4 lore raw
Quoted 20 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Saturday, October 16, 2021 4:50 AM
To: Zhang, AlvinX <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; [email protected]; Zhang, Qi Z <[email protected]>
Subject: Re: [dpdk-stable] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 8 lines · Alvin Zhang

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
Quoted 8 lines
Quoted 1 line

'./devtools/check-doc-vs-code.sh' script is failing [1], can you please fix it?

[1]

$ ./devtools/check-doc-vs-code.sh
rte_flow doc out of sync for i40e
         item ipv6_frag_ext

Fixed in dpdk-next-net-intel.

Thanks
Qi

#5 lore raw
Quoted 40 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Tuesday, October 19, 2021 8:03 AM
To: Yigit, Ferruh <[email protected]>; Zhang, AlvinX <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 18 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Saturday, October 16, 2021 4:50 AM
To: Zhang, AlvinX <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; [email protected]; Zhang, Qi Z <[email protected]>
Subject: Re: [dpdk-stable] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 8 lines · Alvin Zhang

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
Quoted 8 lines
Quoted 1 line

'./devtools/check-doc-vs-code.sh' script is failing [1], can you please fix it?

[1]

$ ./devtools/check-doc-vs-code.sh
rte_flow doc out of sync for i40e
         item ipv6_frag_ext
Quoted 4 lines

Fixed in dpdk-next-net-intel.

Thanks
Qi

Hi Qi,

I have found a issue for this patch, the pattern supported in ice is:
eth / ipv6 / ipv6_frag_ext

not
eth / ipv6_frag_ext

I will submit V2 today.

#6 lore raw
Quoted 59 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Tuesday, October 19, 2021 9:32 AM
To: Zhang, Qi Z <[email protected]>; Yigit, Ferruh <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 41 lines

-----Original Message-----
From: Zhang, Qi Z <[email protected]>
Sent: Tuesday, October 19, 2021 8:03 AM
To: Yigit, Ferruh <[email protected]>; Zhang, AlvinX <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [dpdk-stable] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 19 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Saturday, October 16, 2021 4:50 AM
To: Zhang, AlvinX <[email protected]>; Xing, Beilei <[email protected]>; Guo, Junfeng <[email protected]>
Cc: [email protected]; [email protected]; Zhang, Qi Z <[email protected]>
Subject: Re: [dpdk-stable] [PATCH] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 8 lines · Alvin Zhang

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6_frag_ext / end actions \
rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")
Quoted 8 lines
Quoted 1 line

'./devtools/check-doc-vs-code.sh' script is failing [1], can you please fix it?

[1]

$ ./devtools/check-doc-vs-code.sh
rte_flow doc out of sync for i40e
         item ipv6_frag_ext
Quoted 4 lines

Fixed in dpdk-next-net-intel.

Thanks
Qi

Hi Qi,

Quoted 8 lines

I have found a issue for this patch, the pattern supported in ice is:
eth / ipv6 / ipv6_frag_ext

not
eth / ipv6_frag_ext

I will submit V2 today.

Ok, patch has been dropped from dpdk-next-net-intel.

#7 lore raw

PATCH v2 1/1 net/i40e: fix IPv6 fragment RSS offload type in flow

In reply to Alvin Zhang

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end \
actions rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")

---

v2: Update the flow pattern, the previous is "eth / ipv6_frag_ext",
now is "eth / ipv6 / ipv6_frag_ext"

---
 doc/guides/nics/features/i40e.ini |  1 +
 drivers/net/i40e/i40e_hash.c      | 13 ++++++++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)
doc/guides/nics/features/i40e.ini +1 -0
index ccfc5f1..e3a575f 100644
@@ -61,6 +61,7 @@ gtpc                 = Y
 gtpu                 = Y
 ipv4                 = Y
 ipv6                 = Y
+ipv6_frag_ext        = P
 l2tpv3oip            = Y
 mpls                 = Y
 nvgre                = Y
drivers/net/i40e/i40e_hash.c +12 -1
index 6579b1a..5da3d18 100644
@@ -28,6 +28,7 @@
 #define I40E_HASH_HDR_ETH		0x01ULL
 #define I40E_HASH_HDR_IPV4		0x10ULL
 #define I40E_HASH_HDR_IPV6		0x20ULL
+#define I40E_HASH_HDR_IPV6_FRAG		0x40ULL
 #define I40E_HASH_HDR_TCP		0x100ULL
 #define I40E_HASH_HDR_UDP		0x200ULL
 #define I40E_HASH_HDR_SCTP		0x400ULL
@@ -54,6 +55,8 @@
 
 /* IPv6 */
 #define I40E_PHINT_IPV6			(I40E_HASH_HDR_ETH | I40E_HASH_HDR_IPV6)
+#define I40E_PHINT_IPV6_FRAG		(I40E_PHINT_IPV6 | \
+					 I40E_HASH_HDR_IPV6_FRAG)
 #define I40E_PHINT_IPV6_TCP		(I40E_PHINT_IPV6 | I40E_HASH_HDR_TCP)
 #define I40E_PHINT_IPV6_UDP		(I40E_PHINT_IPV6 | I40E_HASH_HDR_UDP)
 #define I40E_PHINT_IPV6_SCTP		(I40E_PHINT_IPV6 | I40E_HASH_HDR_SCTP)
@@ -158,6 +161,9 @@ struct i40e_hash_map_rss_inset {
 					BIT_ULL(RTE_FLOW_ITEM_TYPE_L2TPV3OIP) |\
 					BIT_ULL(RTE_FLOW_ITEM_TYPE_AH))
 
+#define I40E_HASH_IPV6_NEXT_ALLOW	(I40E_HASH_IP_NEXT_ALLOW | \
+					BIT_ULL(RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT))
+
 #define I40E_HASH_UDP_NEXT_ALLOW	(BIT_ULL(RTE_FLOW_ITEM_TYPE_GTPU) | \
 					BIT_ULL(RTE_FLOW_ITEM_TYPE_GTPC))
 
@@ -168,7 +174,7 @@ struct i40e_hash_map_rss_inset {
 	[RTE_FLOW_ITEM_TYPE_VOID] = I40E_HASH_VOID_NEXT_ALLOW,
 	[RTE_FLOW_ITEM_TYPE_ETH] = I40E_HASH_ETH_NEXT_ALLOW,
 	[RTE_FLOW_ITEM_TYPE_IPV4] = I40E_HASH_IP_NEXT_ALLOW,
-	[RTE_FLOW_ITEM_TYPE_IPV6] = I40E_HASH_IP_NEXT_ALLOW,
+	[RTE_FLOW_ITEM_TYPE_IPV6] = I40E_HASH_IPV6_NEXT_ALLOW,
 	[RTE_FLOW_ITEM_TYPE_UDP] = I40E_HASH_UDP_NEXT_ALLOW,
 	[RTE_FLOW_ITEM_TYPE_GTPU] = I40E_HASH_GTPU_NEXT_ALLOW,
 };
@@ -177,6 +183,7 @@ struct i40e_hash_map_rss_inset {
 	[RTE_FLOW_ITEM_TYPE_ETH] = I40E_HASH_HDR_ETH,
 	[RTE_FLOW_ITEM_TYPE_IPV4] = I40E_HASH_HDR_IPV4,
 	[RTE_FLOW_ITEM_TYPE_IPV6] = I40E_HASH_HDR_IPV6,
+	[RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT] = I40E_HASH_HDR_IPV6_FRAG,
 	[RTE_FLOW_ITEM_TYPE_TCP] = I40E_HASH_HDR_TCP,
 	[RTE_FLOW_ITEM_TYPE_UDP] = I40E_HASH_HDR_UDP,
 	[RTE_FLOW_ITEM_TYPE_SCTP] = I40E_HASH_HDR_SCTP,
@@ -270,6 +277,10 @@ struct i40e_hash_match_pattern {
 			      I40E_HASH_IPV6_L23_RSS_MASK,
 			      I40E_FILTER_PCTYPE_NONF_IPV6_OTHER),
 
+	I40E_HASH_MAP_PATTERN(I40E_PHINT_IPV6_FRAG,
+			      ETH_RSS_FRAG_IPV6 | I40E_HASH_L23_RSS_MASK,
+			      I40E_FILTER_PCTYPE_FRAG_IPV6),
+
 	I40E_HASH_MAP_PATTERN(I40E_PHINT_IPV6_TCP,
 			      ETH_RSS_NONFRAG_IPV6_TCP |
 			      I40E_HASH_IPV6_L234_RSS_MASK,
Signature · 1 line
1.8.3.1
Acked-by on v2 1/1 Applied
#8 lore raw
Quoted 9 lines

-----Original Message-----
From: Zhang, AlvinX <[email protected]>
Sent: Tuesday, October 19, 2021 9:54 AM
To: Zhang, Qi Z <[email protected]>
Cc: [email protected]; Zhang, AlvinX <[email protected]>; [email protected]
Subject: [PATCH v2] net/i40e: fix IPv6 fragment RSS offload type in flow

Quoted 8 lines

To keep flow format uniform with ice, this patch adds support for this RSS rule:
flow create 0 ingress pattern eth / ipv6 / ipv6_frag_ext / end \
actions rss types ipv6-frag end queues end queues end / end

Fixes ef4c16fd9148 ("net/i40e: refactor RSS flow")

Applied to dpdk-next-net-intel.

Thanks
Qi