Skip to contentSkip to conversation

ice: use global queue index in TC to-queue offload

PATCH In review Michal Swiatkowski 3 participants 3 messages Jun 29 – Sep 30

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: use global queue index in TC to-queue offload

Previously index within PF was used, which caused rules to fail on any PF other than PF0.

Switch to global queue index by adding first RX queue id from caps.

Fixes 143b86f346c7 ("ice: Enable RX queue selection using skbedit action")
---
 drivers/net/ethernet/intel/ice/ice_tc_lib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_tc_lib.c +2 -1
index d20357c04127..6f49ecb4165b 100644
@@ -1202,7 +1202,8 @@ ice_add_tc_flower_adv_fltr(struct ice_vsi *vsi,
 		break;
 	case ICE_FWD_TO_Q:
 		/* HW queue number in global space */
-		rule_info.sw_act.fwd_id.q_id = tc_fltr->action.fwd.q.hw_queue;
+		rule_info.sw_act.fwd_id.q_id = tc_fltr->action.fwd.q.hw_queue +
+			hw->func_caps.common_cap.rxq_first_id;
 		rule_info.sw_act.vsi_handle = dest_vsi->idx;
 		rule_info.priority = ICE_SWITCH_FLTR_PRIO_QUEUE;
 		rule_info.sw_act.src = hw->pf_id;
Signature · 1 line
2.49.0
Tested-by on v1 1/1
#2 lore raw
In reply to Michal Swiatkowski
Quoted 9 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Michal Swiatkowski
Sent: Monday, June 29, 2026 2:12 AM
To: [email protected]
Cc: [email protected]; Michal Swiatkowski <[email protected]>; Loktionov, Aleksandr <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net v1] ice: use global queue index in TC to-queue offload

Previously index within PF was used, which caused rules to fail on any PF other than PF0.

Quoted 8 lines

Switch to global queue index by adding first RX queue id from caps.

Fixes 143b86f346c7 ("ice: Enable RX queue selection using skbedit action")
---
 drivers/net/ethernet/intel/ice/ice_tc_lib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)