Skip to contentSkip to conversation

idpf: record rx queue in skb for RSC packets

PATCH In review Samudrala, Sridhar 2 participants 2 messages Jan 10, 2025 – Feb 4, 2025

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

PATCH 1/1 idpf: record rx queue in skb for RSC packets

Move the call to skb_record_rx_queue in idpf_rx_process_skb_fields() so that RX queue is recorded for RSC packets too.

Fixes 90912f9f4f2d ("idpf: convert header split mode to libeth + napi_build_skb()")
---
 drivers/net/ethernet/intel/idpf/idpf_txrx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/intel/idpf/idpf_txrx.c +1 -2
index c9fcf8f4d736..9be6a6b59c4e 100644
@@ -3070,6 +3070,7 @@ idpf_rx_process_skb_fields(struct idpf_rx_queue *rxq, struct sk_buff *skb,
 	idpf_rx_hash(rxq, skb, rx_desc, decoded);
 
 	skb->protocol = eth_type_trans(skb, rxq->netdev);
+	skb_record_rx_queue(skb, rxq->idx);
 
 	if (le16_get_bits(rx_desc->hdrlen_flags,
 			  VIRTCHNL2_RX_FLEX_DESC_ADV_RSC_M))
@@ -3078,8 +3079,6 @@ idpf_rx_process_skb_fields(struct idpf_rx_queue *rxq, struct sk_buff *skb,
 	csum_bits = idpf_rx_splitq_extract_csum_bits(rx_desc);
 	idpf_rx_csum(rxq, skb, csum_bits, decoded);
 
-	skb_record_rx_queue(skb, rxq->idx);
-
 	return 0;
 }
 
Signature · 1 line
2.46.2
Tested-by on v1 1/1
#1 lore raw
Quoted 12 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Samudrala, Sridhar
Sent: Friday, January 10, 2025 4:30 PM
To: [email protected]; [email protected]
Cc: Samudrala, Sridhar <[email protected]>; Chittim, Madhu <[email protected]>
Subject: [Intel-wired-lan] [PATCH iwl-net] idpf: record rx queue in skb for RSC packets

Quoted 7 lines

Move the call to skb_record_rx_queue in idpf_rx_process_skb_fields() so that RX queue is recorded for RSC packets too.

Fixes 90912f9f4f2d ("idpf: convert header split mode to libeth +

napi_build_skb()")