Skip to contentSkip to conversation

net/ice: fix initialization with 8 ports

PATCH In review Bruce Richardson 2 participants 3 messages Sep 30, 2025 – Oct 9, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ice: fix initialization with 8 ports

When initializing an 8-port device, the ACL configuration failed with the adminq returning an ENOMEM status from the sixth port onwards. Fix this issue by halving the depth, and therefore the space required, when using a device with >4 PFs.

---
 drivers/net/intel/ice/ice_acl_filter.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/intel/ice/ice_acl_filter.c +4 -1
index 83cb3e36f9..38e30a4f62 100644
@@ -114,7 +114,10 @@ ice_acl_setup(struct ice_pf *pf)
 	else
 		params.width = ICE_AQC_ACL_KEY_WIDTH_BYTES * 3;
 
-	params.depth = ICE_AQC_ACL_TCAM_DEPTH;
+	if (pf_num > 4)
+		params.depth = ICE_AQC_ACL_TCAM_DEPTH / 2;
+	else
+		params.depth = ICE_AQC_ACL_TCAM_DEPTH;
 	params.entry_act_pairs = 1;
 	params.concurr = false;
 
Signature · 1 line
2.43.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines

-----Original Message-----
From: Bruce Richardson <[email protected]>
Sent: Tuesday 30 September 2025 15:29
To: [email protected]
Cc: Richardson, Bruce <[email protected]>
Subject: [PATCH] net/ice: fix initialization with 8 ports

Quoted 7 lines

When initializing an 8-port device, the ACL configuration failed with the adminq returning an ENOMEM status from the sixth port onwards. Fix this issue by halving the depth, and therefore the space required, when using a device with >4 PFs.

---

Quoted 22 lines
 drivers/net/intel/ice/ice_acl_filter.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/intel/ice/ice_acl_filter.c +4 -2
index 83cb3e36f9..38e30a4f62 100644
@@ -114,7 +114,10 @@ ice_acl_setup(struct ice_pf *pf)
 	else
 		params.width = ICE_AQC_ACL_KEY_WIDTH_BYTES * 3;
 
-	params.depth = ICE_AQC_ACL_TCAM_DEPTH;
+	if (pf_num > 4)
+		params.depth = ICE_AQC_ACL_TCAM_DEPTH / 2;
+	else
+		params.depth = ICE_AQC_ACL_TCAM_DEPTH;
 	params.entry_act_pairs = 1;
 	params.concurr = false;
 
--

2.43.0

author Applied
#2 lore raw
Quoted 14 lines · Kirill
Quoted 14 lines

-----Original Message-----
From: Bruce Richardson <[email protected]>
Sent: Tuesday 30 September 2025 15:29
To: [email protected]
Cc: Richardson, Bruce <[email protected]>
Subject: [PATCH] net/ice: fix initialization with 8 ports

When initializing an 8-port device, the ACL configuration failed with the adminq returning an ENOMEM status from the sixth port onwards. Fix this issue by halving the depth, and therefore the space required, when using a device with >4 PFs.

Quoted 5 lines
Quoted 2 lines

---

Applied to dpdk-next-net-intel.

/Bruce