patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/ixgbe: enable IPv6 mask for generic flow API
@ 2023-01-28  7:15 Kaiwen Deng
  2023-02-02  6:09 ` Yang, Qiming
  2023-02-02  6:29 ` Peng, Yuan
  0 siblings, 2 replies; 6+ messages in thread
From: Kaiwen Deng @ 2023-01-28  7:15 UTC (permalink / raw)
  To: dev
  Cc: stable, yidingx.zhou, Kaiwen Deng, Qiming Yang, Wenjun Wu,
	Wei Zhao, Beilei Xing, Wenzhuo Lu, Wei Dai

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")
Cc: stable@dpdk.org

Signed-off-by: Kaiwen Deng <kaiwenx.deng@intel.com>
---
 drivers/net/ixgbe/ixgbe_flow.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ixgbe/ixgbe_flow.c b/drivers/net/ixgbe/ixgbe_flow.c
index 110ff34fcc..d2ba87df27 100644
--- a/drivers/net/ixgbe/ixgbe_flow.c
+++ b/drivers/net/ixgbe/ixgbe_flow.c
@@ -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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-02-08  3:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-28  7:15 [PATCH] net/ixgbe: enable IPv6 mask for generic flow API Kaiwen Deng
2023-02-02  6:09 ` Yang, Qiming
2023-02-02  6:52   ` Deng, KaiwenX
2023-02-07  6:41     ` Yang, Qiming
2023-02-08  3:23       ` Zhang, Qi Z
2023-02-02  6:29 ` Peng, Yuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).