patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] net/ixgbe: fix port mask default value in flow director
@ 2025-04-18  7:43 Yuan Wang
  2025-04-18 10:42 ` Xu, HailinX
  2025-04-18 18:17 ` Stephen Hemminger
  0 siblings, 2 replies; 3+ messages in thread
From: Yuan Wang @ 2025-04-18  7:43 UTC (permalink / raw)
  To: anatoly.burakov, vladimir.medvedkin, dev; +Cc: Yuan Wang, stable

The fdir filter should mask L4 protocol in order to process raw IP packets.
However, the initial value of port mask is 0xFF and the filter will not
process raw IP packets if the flow rule does not change it.

Fixed by setting the default value to 0.

Fixes: 444505f933f1 (net/ixgbe: fix IPv6 mask in flow director)
Cc: stable@dpdk.org

Signed-off-by: Yuan Wang <yuanx.wang@intel.com>
---
 drivers/net/intel/ixgbe/ixgbe_flow.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/intel/ixgbe/ixgbe_flow.c b/drivers/net/intel/ixgbe/ixgbe_flow.c
index 33da2f47ec..1e3804bb15 100644
--- a/drivers/net/intel/ixgbe/ixgbe_flow.c
+++ b/drivers/net/intel/ixgbe/ixgbe_flow.c
@@ -1644,6 +1644,8 @@ 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;
 
 	/**
 	 * The first not void item should be
-- 
2.47.1


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

end of thread, other threads:[~2025-04-18 18:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-18  7:43 [PATCH] net/ixgbe: fix port mask default value in flow director Yuan Wang
2025-04-18 10:42 ` Xu, HailinX
2025-04-18 18:17 ` Stephen Hemminger

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