patch 'net/tap: free remote flow when implicit rule already exists' has been queued to stable release 25.11.1

Kevin Traynor ktraynor at redhat.com
Thu Mar 19 11:02:48 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.1

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/23/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/4d6e09ee3034ce60603fd1cc4378902e07a35189

Thanks.

Kevin

---
>From 4d6e09ee3034ce60603fd1cc4378902e07a35189 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Sun, 22 Feb 2026 09:30:47 -0800
Subject: [PATCH] net/tap: free remote flow when implicit rule already exists

[ upstream commit d08dd4fd79ec0640c7efa9987e36d49af2997710 ]

When tap_flow_implicit_create() gets EEXIST from the kernel, the
allocated remote_flow is never freed. Add rte_free() on that path.

Bugzilla ID: 1880
Fixes: 2ef1c0da894a ("net/tap: fix isolation mode toggling")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 drivers/net/tap/tap_flow.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/tap/tap_flow.c b/drivers/net/tap/tap_flow.c
index 427faf75d5..da1e70019a 100644
--- a/drivers/net/tap/tap_flow.c
+++ b/drivers/net/tap/tap_flow.c
@@ -1626,6 +1626,8 @@ int tap_flow_implicit_create(struct pmd_internals *pmd,
 	if (err < 0) {
 		/* Silently ignore re-entering existing rule */
-		if (errno == EEXIST)
+		if (errno == EEXIST) {
+			rte_free(remote_flow);
 			goto success;
+		}
 		TAP_LOG(ERR,
 			"Kernel refused TC filter rule creation (%d): %s",
-- 
2.53.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-03-19 10:01:08.576087037 +0000
+++ 0050-net-tap-free-remote-flow-when-implicit-rule-already-.patch	2026-03-19 10:01:07.117856971 +0000
@@ -1 +1 @@
-From d08dd4fd79ec0640c7efa9987e36d49af2997710 Mon Sep 17 00:00:00 2001
+From 4d6e09ee3034ce60603fd1cc4378902e07a35189 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d08dd4fd79ec0640c7efa9987e36d49af2997710 ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -19 +20 @@
-index 530f6880c7..cd9dd68804 100644
+index 427faf75d5..da1e70019a 100644
@@ -22 +23 @@
-@@ -1632,6 +1632,8 @@ int tap_flow_implicit_create(struct pmd_internals *pmd,
+@@ -1626,6 +1626,8 @@ int tap_flow_implicit_create(struct pmd_internals *pmd,



More information about the stable mailing list