patch 'net/i40e: fix FDIR memzone leak' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:03:37 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/bf3b14f066dfe7ef750ec8b9f4cfe7f4a7a2331c

Thanks.

Kevin

---
>From bf3b14f066dfe7ef750ec8b9f4cfe7f4a7a2331c Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Fri, 23 Oct 2026 10:31:30 +0000
Subject: [PATCH] net/i40e: fix FDIR memzone leak

[ upstream commit d1559bcb7ed3633c01026e91b26eac89e16e0578 ]

The memzone holding the flow director programming packets is reserved
in i40e_fdir_setup() but never freed, as i40e_fdir_teardown() only
releases the FDIR queues and VSI.
It is therefore leaked when the port is closed.

Store the memzone pointer and free it on teardown.

Fixes: a778a1fa2e4e ("i40e: set up and initialize flow director")
Fixes: 71d35259ff67 ("i40e: tear down flow director")

Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/i40e/i40e_ethdev.h | 1 +
 drivers/net/intel/i40e/i40e_fdir.c   | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/drivers/net/intel/i40e/i40e_ethdev.h b/drivers/net/intel/i40e/i40e_ethdev.h
index 2233eb5553..a451aaea12 100644
--- a/drivers/net/intel/i40e/i40e_ethdev.h
+++ b/drivers/net/intel/i40e/i40e_ethdev.h
@@ -744,4 +744,5 @@ struct i40e_fdir_info {
 	void *prg_pkt[I40E_FDIR_PRG_PKT_CNT];     /* memory for fdir program packet */
 	uint64_t dma_addr[I40E_FDIR_PRG_PKT_CNT]; /* physic address of packet memory*/
+	const struct rte_memzone *prg_mz;         /* memzone backing prg_pkt */
 	/*
 	 * txq available buffer counter, indicates how many available buffers
diff --git a/drivers/net/intel/i40e/i40e_fdir.c b/drivers/net/intel/i40e/i40e_fdir.c
index 5a703c97e3..dabde48507 100644
--- a/drivers/net/intel/i40e/i40e_fdir.c
+++ b/drivers/net/intel/i40e/i40e_fdir.c
@@ -255,4 +255,6 @@ i40e_fdir_setup(struct i40e_pf *pf)
 	}
 
+	pf->fdir.prg_mz = mz;
+
 	pf->fdir.match_counter_index = I40E_COUNTER_INDEX_FDIR(hw->pf_id);
 	pf->fdir.fdir_actual_cnt = 0;
@@ -305,4 +307,6 @@ i40e_fdir_teardown(struct i40e_pf *pf)
 	i40e_tx_queue_release(pf->fdir.txq);
 	pf->fdir.txq = NULL;
+	rte_memzone_free(pf->fdir.prg_mz);
+	pf->fdir.prg_mz = NULL;
 	i40e_vsi_release(vsi);
 	pf->fdir.fdir_vsi = NULL;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:47.471027328 +0000
+++ 0291-net-i40e-fix-FDIR-memzone-leak.patch	2026-12-03 12:52:39.233938737 +0000
@@ -1 +1 @@
-From d1559bcb7ed3633c01026e91b26eac89e16e0578 Mon Sep 17 00:00:00 2001
+From bf3b14f066dfe7ef750ec8b9f4cfe7f4a7a2331c Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d1559bcb7ed3633c01026e91b26eac89e16e0578 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 68bff99b5d..77f79fc7da 100644
+index 2233eb5553..a451aaea12 100644
@@ -28 +29 @@
-@@ -791,4 +791,5 @@ struct i40e_fdir_info {
+@@ -744,4 +744,5 @@ struct i40e_fdir_info {
@@ -35 +36 @@
-index 71cab77e83..2464eb47c2 100644
+index 5a703c97e3..dabde48507 100644
@@ -38 +39 @@
-@@ -242,4 +242,6 @@ i40e_fdir_setup(struct i40e_pf *pf)
+@@ -255,4 +255,6 @@ i40e_fdir_setup(struct i40e_pf *pf)
@@ -44,2 +45,2 @@
- 
-@@ -298,4 +300,6 @@ i40e_fdir_teardown(struct i40e_pf *pf)
+ 	pf->fdir.fdir_actual_cnt = 0;
+@@ -305,4 +307,6 @@ i40e_fdir_teardown(struct i40e_pf *pf)



More information about the stable mailing list