Skip to contentSkip to conversation

net/ixgbe: enable IPv6 mask for generic flow API

PATCH Applied Kaiwen Deng 4 participants 6 messages Jan 28, 2023 – Feb 8, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

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.

Fixes 11777435c727 ("net/ixgbe: parse flow director filter")
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ixgbe/ixgbe_flow.c +4 -0
index 110ff34fcc..d2ba87df27 100644
@@ -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
#1 lore raw

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 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.

Fixes 11777435c727 ("net/ixgbe: parse flow director filter")
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/ixgbe/ixgbe_flow.c +4 -0
index 110ff34fcc..d2ba87df27 100644
@@ -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

#2 lore raw
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 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.

Fixes 11777435c727 ("net/ixgbe: parse flow director filter")
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ixgbe/ixgbe_flow.c index 110ff34fcc..d2ba87df27 100644

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

Acked-by
#3 lore raw

Hi,

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 API

Quoted 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 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 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 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.

Fixes 11777435c727 ("net/ixgbe: parse flow director filter")
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ixgbe/ixgbe_flow.c index 110ff34fcc..d2ba87df27 100644

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;
 
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

Applied
#4 lore raw
Quoted 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 API

Hi,

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 API

Quoted 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 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 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 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.

Fixes 11777435c727 ("net/ixgbe: parse flow director filter")
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++++
 1 file changed, 4 insertions(+)
(quoted diff) +0 -0

b/drivers/net/ixgbe/ixgbe_flow.c index 110ff34fcc..d2ba87df27 100644

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;
 
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.1

Applied to dpdk-next-net-intel.

Thanks
Qi

Tested-by on v1 1/1
#5 lore raw
In reply to Kaiwen Deng
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 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.

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")

---