patch 'net/ice: fix inconsistent state on FDIR failure' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:03:26 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/00b5dee4c2e926cd433666d1abfbc8da9aadf630

Thanks.

Kevin

---
>From 00b5dee4c2e926cd433666d1abfbc8da9aadf630 Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Tue, 20 Oct 2026 13:11:05 +0100
Subject: [PATCH] net/ice: fix inconsistent state on FDIR failure

[ upstream commit a403c7f7fc88350e6b0427f6c9bf5066c87fd997 ]

FDIR creation programs the hardware rule before inserting its software
hash entry. If insertion fails, creation returns without removing the
hardware rule or releasing its counter, and MARK parsing may remain
enabled despite no flow handle being returned.

Reserve the hash entry before programming the rule, and release the
counter if reservation fails. Remove the reserved entry if hardware
programming fails. Enable MARK parsing only after both steps succeed.

Fixes: 1a2fc1799f09 ("net/ice: reject duplicated flow for flow director")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/ice/ice_fdir_filter.c | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/drivers/net/intel/ice/ice_fdir_filter.c b/drivers/net/intel/ice/ice_fdir_filter.c
index 55e5c09fb7..9e9287f6c2 100644
--- a/drivers/net/intel/ice/ice_fdir_filter.c
+++ b/drivers/net/intel/ice/ice_fdir_filter.c
@@ -1416,6 +1416,16 @@ ice_fdir_create_filter(struct ice_adapter *ad,
 	}
 
+	/* Reserve the software entry before installing the hardware rule. */
+	ret = ice_fdir_entry_insert(pf, entry, &key);
+	if (ret) {
+		rte_flow_error_set(error, -ret,
+				   RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
+				   "Insert entry to table failed.");
+		goto free_counter;
+	}
+
 	ret = ice_fdir_add_del_filter(pf, filter, true);
 	if (ret) {
+		ice_fdir_entry_del(pf, &key);
 		rte_flow_error_set(error, -ret,
 				   RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
@@ -1428,12 +1438,4 @@ ice_fdir_create_filter(struct ice_adapter *ad,
 
 	rte_memcpy(entry, filter, sizeof(*entry));
-	ret = ice_fdir_entry_insert(pf, entry, &key);
-	if (ret) {
-		rte_flow_error_set(error, -ret,
-				   RTE_FLOW_ERROR_TYPE_HANDLE, NULL,
-				   "Insert entry to table failed.");
-		goto free_entry;
-	}
-
 	flow->rule = entry;
 	ice_fdir_cnt_update(pf, filter->input.flow_type, is_tun, true);
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:47.161784960 +0000
+++ 0280-net-ice-fix-inconsistent-state-on-FDIR-failure.patch	2026-12-03 12:52:39.224619072 +0000
@@ -1 +1 @@
-From a403c7f7fc88350e6b0427f6c9bf5066c87fd997 Mon Sep 17 00:00:00 2001
+From 00b5dee4c2e926cd433666d1abfbc8da9aadf630 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a403c7f7fc88350e6b0427f6c9bf5066c87fd997 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 517c32cecf..63a0d9fb1f 100644
+index 55e5c09fb7..9e9287f6c2 100644
@@ -28 +29 @@
-@@ -1655,6 +1655,16 @@ ice_fdir_create_filter(struct ice_adapter *ad,
+@@ -1416,6 +1416,16 @@ ice_fdir_create_filter(struct ice_adapter *ad,
@@ -45 +46 @@
-@@ -1667,12 +1677,4 @@ ice_fdir_create_filter(struct ice_adapter *ad,
+@@ -1428,12 +1438,4 @@ ice_fdir_create_filter(struct ice_adapter *ad,
@@ -47 +48 @@
- 	memcpy(entry, filter, sizeof(*entry));
+ 	rte_memcpy(entry, filter, sizeof(*entry));



More information about the stable mailing list