[PATCH v8 27/49] net/sxe2: enable FDIR on all Rx queues

liujie5 at linkdatatechnology.com liujie5 at linkdatatechnology.com
Tue Sep 1 05:07:55 CEST 2026


From: Jie Liu <liujie5 at linkdatatechnology.com>

sxe2_flow_init() always sets fnav_inited, so enable FDIR on every Rx
queue during queue init by setting rxq->fnav_enable.  FDIR/FNAV
flags are required for flow rules and ACL statistics, so every Rx
queue must have them enabled.  This makes the fnav blocks in the
vectorized Rx paths live on all queues.

Signed-off-by: Jie Liu <liujie5 at linkdatatechnology.com>
---
 drivers/net/sxe2/sxe2_queue.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/sxe2/sxe2_queue.c b/drivers/net/sxe2/sxe2_queue.c
index afb2681b72..3aaa14c685 100644
--- a/drivers/net/sxe2/sxe2_queue.c
+++ b/drivers/net/sxe2/sxe2_queue.c
@@ -39,6 +39,8 @@ int32_t sxe2_queues_init(struct rte_eth_dev *dev)
 		rxq->rx_buf_len = RTE_MIN(rxq->rx_buf_len, SXE2_RX_MAX_DATA_BUF_SIZE);
 		if (frame_size > rxq->rx_buf_len)
 			dev->data->scattered_rx = 1;
+		if (adapter->flow_ctxt.fnav_inited)
+			rxq->fnav_enable = true;
 	}
 
 	adapter->ptp_ctxt.mbuf_rx_ts_offset = -1;
-- 
2.52.0



More information about the dev mailing list