net/ixgbe: enable IPv6 mask for generic flow API
PATCH 1/1 net/ixgbe: enable IPv6 mask for generic flow API
Add IPv6 addr mask and L4 mask support for rte_flow APIs.
IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as 0xFF.
Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue.
--- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/ixgbe/ixgbe_flow.c +4 -0
@@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev,memset (&rule->mask,0xFF ,sizeof (struct ixgbe_hw_fdir_mask )); rule->mask.vlan_tci_mask =0 ; rule->mask.flex_bytes_mask =0 ; + rule->mask.dst_port_mask =0 ; + rule->mask.src_port_mask =0 ; + rule->mask.src_ipv6_mask =0 ; + rule->mask.dst_ipv6_mask =0 ;/** * The first not void item should be
Signature · 1 line
2.34.1
Hi, Kaiwen
The code looks good to me.
Can you ask someone to test this behavior and add a tested-by?
Qiming
Quoted 44 lines
-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Saturday, January 28, 2023 3:15 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIAdd IPv6 addr mask and L4 mask support for
rte_flowAPIs.IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as
0xFF.Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue.
Fixes 11777435c727 ("net/ixgbe: parse flow director filter")Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/net/ixgbe/ixgbe_flow.c +4
-0@@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev,memset (&rule->mask,0xFF ,sizeof (struct ixgbe_hw_fdir_mask )); rule->mask.vlan_tci_mask =0 ; rule->mask.flex_bytes_mask =0 ; + rule->mask.dst_port_mask =0 ; + rule->mask.src_port_mask =0 ; + rule->mask.src_ipv6_mask =0 ; + rule->mask.dst_ipv6_mask =0 ;/** * The first not void item should be
--
2.34.1
Quoted 12 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Thursday, February 2, 2023 2:10 PM
To: Deng, KaiwenX <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow API
Quoted 7 lines
Hi, Kaiwen
The code looks good to me.
Can you ask someone to test this behavior and add a tested-by?Qiming
Hi,Qiming
Peng Yuan just added tested-by.
Kaiwen
Quoted 45 lines
Quoted 7 lines
-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Saturday, January 28, 2023 3:15 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>;Zhao1,
Quoted 37 lines
Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIAdd IPv6 addr mask and L4 mask support for
rte_flowAPIs.IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as
0xFF.Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue.
Fixes 11777435c727 ("net/ixgbe: parse flow director filter")Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/drivers/net/ixgbe/ixgbe_flow.cindex110ff34fcc..d2ba87df27100644drivers/net/ixgbe/ixgbe_flow.c +4
-0@@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev,memset (&rule->mask,0xFF ,sizeof (struct ixgbe_hw_fdir_mask )); rule->mask.vlan_tci_mask =0 ; rule->mask.flex_bytes_mask =0 ; + rule->mask.dst_port_mask =0 ; + rule->mask.src_port_mask =0 ; + rule->mask.src_ipv6_mask =0 ; + rule->mask.dst_ipv6_mask =0 ;/** * The first not void item should be
--
2.34.1
Yang, Qiming
Acked-byHi,
Quoted 75 lines
-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Thursday, February 2, 2023 2:53 PM
To: Yang, Qiming <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIQuoted 10 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Thursday, February 2, 2023 2:10 PM
To: Deng, KaiwenX <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIQuoted 7 lines
Hi, Kaiwen
The code looks good to me.
Can you ask someone to test this behavior and add a tested-by?Qiming
Hi,Qiming
Peng Yuan just added tested-by.
Kaiwen
Quoted 41 lines
Quoted 7 lines
-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Saturday, January 28, 2023 3:15 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>;Zhao1,
Quoted 33 lines
Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIAdd IPv6 addr mask and L4 mask support for
rte_flowAPIs.IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as
0xFF.Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue.
Fixes 11777435c727 ("net/ixgbe: parse flow director filter")Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/drivers/net/ixgbe/ixgbe_flow.cindex110ff34fcc..d2ba87df27100644drivers/net/ixgbe/ixgbe_flow.c +4
-0@@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev,memset (&rule->mask,0xFF ,sizeof (struct ixgbe_hw_fdir_mask )); rule->mask.vlan_tci_mask =0 ; rule->mask.flex_bytes_mask =0 ; + rule->mask.dst_port_mask =0 ; + rule->mask.src_port_mask =0 ; + rule->mask.src_ipv6_mask =0 ; + rule->mask.dst_ipv6_mask =0 ;
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/net/ixgbe/ixgbe_flow.c +0
-0/** * The first not void item should be
--
2.34.1
Zhang, Qi Z
AppliedQuoted 91 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Tuesday, February 7, 2023 2:41 PM
To: Deng, KaiwenX <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIHi,
Quoted 77 lines
-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Thursday, February 2, 2023 2:53 PM
To: Yang, Qiming <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIQuoted 11 lines
-----Original Message-----
From: Yang, Qiming <[email protected]>
Sent: Thursday, February 2, 2023 2:10 PM
To: Deng, KaiwenX <[email protected]>; [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: RE: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIQuoted 7 lines
Hi, Kaiwen
The code looks good to me.
Can you ask someone to test this behavior and add a tested-by?Qiming
Hi,Qiming
Peng Yuan just added tested-by.
Kaiwen
Quoted 42 lines
Quoted 7 lines
-----Original Message-----
From: Deng, KaiwenX <[email protected]>
Sent: Saturday, January 28, 2023 3:15 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>;Zhao1,
Quoted 34 lines
Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIAdd IPv6 addr mask and L4 mask support for
rte_flowAPIs.IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as
0xFF.Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue.
Fixes 11777435c727 ("net/ixgbe: parse flow director filter")Signed-off-by Kaiwen Deng <[email protected]>--- drivers/net/ixgbe/ixgbe_flow.c | 4 ++++ 1 file changed, 4 insertions(+)(quoted diff) +0
-0
b/drivers/net/ixgbe/ixgbe_flow.cindex110ff34fcc..d2ba87df27100644drivers/net/ixgbe/ixgbe_flow.c +4
-0@@ -1645,6 +1645,10 @@ ixgbe_parse_fdir_filter_normal(struct rte_eth_dev *dev,memset (&rule->mask,0xFF ,sizeof (struct ixgbe_hw_fdir_mask )); rule->mask.vlan_tci_mask =0 ; rule->mask.flex_bytes_mask =0 ; + rule->mask.dst_port_mask =0 ; + rule->mask.src_port_mask =0 ; + rule->mask.src_ipv6_mask =0 ; + rule->mask.dst_ipv6_mask =0 ;
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
drivers/net/ixgbe/ixgbe_flow.c +0
-0/** * The first not void item should be
--
2.34.1Acked-by Qiming Yang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
Quoted 18 lines
-----Original Message-----
From: Kaiwen Deng <[email protected]>
Sent: Saturday, January 28, 2023 3:15 PM
To: [email protected]
Cc: [email protected]; Zhou, YidingX <[email protected]>; Deng, KaiwenX <[email protected]>; Yang, Qiming <[email protected]>; Wu, Wenjun1 <[email protected]>; Zhao1, Wei <[email protected]>; Xing, Beilei <[email protected]>; Lu, Wenzhuo <[email protected]>; Dai, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: enable IPv6 mask for generic flow APIAdd IPv6 addr mask and L4 mask support for
rte_flowAPIs.IPv6 flow rules do not take effect in ixgbe when set IPv6 addr mask and L4 mask to default value as
0xFF.
Quoted 7 lines
Set IPv6 addr mask and L4 mask as 0 to enable fields can fix this issue.
Fixes 11777435c727 ("net/ixgbe: parse flow director filter")Signed-off-by Kaiwen Deng <[email protected]>---