patch 'net/ice: fix ACL entry limit on devices with 8 ports' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:05:41 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/3cfd2aa445bb28f74d25875fe64e18bbca39e3c1

Thanks.

Kevin

---
>From 3cfd2aa445bb28f74d25875fe64e18bbca39e3c1 Mon Sep 17 00:00:00 2001
From: Ciara Loftus <ciara.loftus at intel.com>
Date: Mon, 9 Nov 2026 15:32:45 +0000
Subject: [PATCH] net/ice: fix ACL entry limit on devices with 8 ports

[ upstream commit 2020907a07b00710e304c4aaaf1409799bf26257 ]

Currently, the ACL table depth is halved on devices with more than 4
PFs, but the driver still assumes 256 entries are available. The base
code reserves only 50% of the scenario for the NORMAL priority band,
so on an 8-port device adding the 129th rule fails and the flow silently
falls back to the switch engine.

Fix it by deriving the entry limit from the configured depth so the
driver rejects rules beyond the NORMAL band with an explicit error.

Fixes: 17a8fc206178 ("net/ice: fix initialization with 8 ports")

Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/ice/ice_acl_filter.c | 9 ++++++---
 drivers/net/intel/ice/ice_ethdev.h     | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/net/intel/ice/ice_acl_filter.c b/drivers/net/intel/ice/ice_acl_filter.c
index 728e605c8a..dbbc18000e 100644
--- a/drivers/net/intel/ice/ice_acl_filter.c
+++ b/drivers/net/intel/ice/ice_acl_filter.c
@@ -131,4 +131,7 @@ ice_acl_setup(struct ice_pf *pf)
 		return err;
 
+	/* Only the NORMAL priority band (50% of the scenario) is used. */
+	pf->acl.max_entries = params.depth / 2;
+
 	return 0;
 }
@@ -446,5 +449,5 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
 	 * For IPV4_UDP/TCP/SCTP type, only add entry for each.
 	 */
-	if (slot_id < MAX_ACL_NORMAL_ENTRIES) {
+	if (slot_id < pf->acl.max_entries) {
 		entry_id = ((uint64_t)flow_type << 32) | slot_id;
 		ret = ice_flow_add_entry(hw, blk, flow_type,
@@ -460,6 +463,6 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
 		pf->acl.hw_entry_id[slot_id] = hw_entry;
 	} else {
-		PMD_DRV_LOG(ERR, "Exceed the maximum entry number(%d)"
-			    " HW supported!", MAX_ACL_NORMAL_ENTRIES);
+		PMD_DRV_LOG(ERR, "Exceed the maximum entry number(%u)"
+			    " HW supported!", pf->acl.max_entries);
 		rte_bitmap_set(pf->acl.slots, slot_id);
 		return -1;
diff --git a/drivers/net/intel/ice/ice_ethdev.h b/drivers/net/intel/ice/ice_ethdev.h
index 1920774c9c..5534387702 100644
--- a/drivers/net/intel/ice/ice_ethdev.h
+++ b/drivers/net/intel/ice/ice_ethdev.h
@@ -489,4 +489,5 @@ struct ice_acl_info {
 	struct ice_acl_conf conf;
 	struct rte_bitmap *slots;
+	uint16_t max_entries;
 	uint64_t hw_entry_id[MAX_ACL_NORMAL_ENTRIES];
 };
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:50.914009644 +0000
+++ 0415-net-ice-fix-ACL-entry-limit-on-devices-with-8-ports.patch	2026-12-03 12:52:39.312713636 +0000
@@ -1 +1 @@
-From 2020907a07b00710e304c4aaaf1409799bf26257 Mon Sep 17 00:00:00 2001
+From 3cfd2aa445bb28f74d25875fe64e18bbca39e3c1 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2020907a07b00710e304c4aaaf1409799bf26257 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index 94c9ea89fd..0f913126de 100644
+index 728e605c8a..dbbc18000e 100644
@@ -29 +30 @@
-@@ -135,4 +135,7 @@ ice_acl_setup(struct ice_pf *pf)
+@@ -131,4 +131,7 @@ ice_acl_setup(struct ice_pf *pf)
@@ -37 +38 @@
-@@ -450,5 +453,5 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
+@@ -446,5 +449,5 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
@@ -44 +45 @@
-@@ -464,6 +467,6 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
+@@ -460,6 +463,6 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
@@ -54 +55 @@
-index 945e765c2c..7a3d164143 100644
+index 1920774c9c..5534387702 100644
@@ -57,2 +58,2 @@
-@@ -499,4 +499,5 @@ struct ice_acl_conf {
- struct ice_acl_info {
+@@ -489,4 +489,5 @@ struct ice_acl_info {
+ 	struct ice_acl_conf conf;



More information about the stable mailing list