patch 'net/ice: fix ACL entry limit on devices with 8 ports' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:52:04 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/18/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/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/0c8316f3a25db8bb3926816bcb28a6c5760f1aa4
Thanks.
Luca Boccassi
---
>From 0c8316f3a25db8bb3926816bcb28a6c5760f1aa4 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/ice/ice_acl_filter.c | 9 ++++++---
drivers/net/ice/ice_ethdev.h | 1 +
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c
index 3a2080e791..827189e1a9 100644
--- a/drivers/net/ice/ice_acl_filter.c
+++ b/drivers/net/ice/ice_acl_filter.c
@@ -129,6 +129,9 @@ ice_acl_setup(struct ice_pf *pf)
if (err)
return err;
+ /* Only the NORMAL priority band (50% of the scenario) is used. */
+ pf->acl.max_entries = params.depth / 2;
+
return 0;
}
@@ -425,7 +428,7 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
/* For IPV4_OTHER type, should add entry for all types.
* 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,
entry_id, pf->main_vsi->idx,
@@ -439,8 +442,8 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
rule->entry_id[entry_idx] = entry_id;
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/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h
index b52adfdd2d..81789731f7 100644
--- a/drivers/net/ice/ice_ethdev.h
+++ b/drivers/net/ice/ice_ethdev.h
@@ -453,6 +453,7 @@ struct ice_acl_conf {
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.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:18.470121737 +0000
+++ 0050-net-ice-fix-ACL-entry-limit-on-devices-with-8-ports.patch 2026-11-16 22:52:16.488233484 +0000
@@ -1 +1 @@
-From 2020907a07b00710e304c4aaaf1409799bf26257 Mon Sep 17 00:00:00 2001
+From 0c8316f3a25db8bb3926816bcb28a6c5760f1aa4 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 2020907a07b00710e304c4aaaf1409799bf26257 ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -21,2 +22,2 @@
- drivers/net/intel/ice/ice_acl_filter.c | 9 ++++++---
- drivers/net/intel/ice/ice_ethdev.h | 1 +
+ drivers/net/ice/ice_acl_filter.c | 9 ++++++---
+ drivers/net/ice/ice_ethdev.h | 1 +
@@ -25,5 +26,5 @@
-diff --git a/drivers/net/intel/ice/ice_acl_filter.c b/drivers/net/intel/ice/ice_acl_filter.c
-index 94c9ea89fd..0f913126de 100644
---- a/drivers/net/intel/ice/ice_acl_filter.c
-+++ b/drivers/net/intel/ice/ice_acl_filter.c
-@@ -134,6 +134,9 @@ ice_acl_setup(struct ice_pf *pf)
+diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c
+index 3a2080e791..827189e1a9 100644
+--- a/drivers/net/ice/ice_acl_filter.c
++++ b/drivers/net/ice/ice_acl_filter.c
+@@ -129,6 +129,9 @@ ice_acl_setup(struct ice_pf *pf)
@@ -39 +40 @@
-@@ -449,7 +452,7 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
+@@ -425,7 +428,7 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
@@ -48 +49 @@
-@@ -463,8 +466,8 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
+@@ -439,8 +442,8 @@ ice_acl_hw_set_conf(struct ice_pf *pf, struct ice_fdir_fltr *input,
@@ -59,6 +60,5 @@
-diff --git a/drivers/net/intel/ice/ice_ethdev.h b/drivers/net/intel/ice/ice_ethdev.h
-index 945e765c2c..7a3d164143 100644
---- a/drivers/net/intel/ice/ice_ethdev.h
-+++ b/drivers/net/intel/ice/ice_ethdev.h
-@@ -498,6 +498,7 @@ struct ice_acl_conf {
- */
+diff --git a/drivers/net/ice/ice_ethdev.h b/drivers/net/ice/ice_ethdev.h
+index b52adfdd2d..81789731f7 100644
+--- a/drivers/net/ice/ice_ethdev.h
++++ b/drivers/net/ice/ice_ethdev.h
+@@ -453,6 +453,7 @@ struct ice_acl_conf {
@@ -65,0 +66 @@
+ struct ice_acl_conf conf;
More information about the stable
mailing list