From 7294ebd078b22d0ddef47540501a9a609d436ea1 Mon Sep 17 00:00:00 2001 From: Bjarne von Horn Date: Thu, 26 Jun 2025 10:37:23 +0200 Subject: [PATCH] Avoid smp_processor_id() in igb 6.12. --- devices/igb/igb_main-6.12-ethercat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/igb/igb_main-6.12-ethercat.c b/devices/igb/igb_main-6.12-ethercat.c index ed1af4c9..acb69b49 100644 --- a/devices/igb/igb_main-6.12-ethercat.c +++ b/devices/igb/igb_main-6.12-ethercat.c @@ -9013,7 +9013,6 @@ static int igb_clean_rx_irq(struct igb_q_vector *q_vector, const int budget) struct igb_ring *rx_ring = q_vector->rx.ring; u16 cleaned_count = igb_desc_unused(rx_ring); struct sk_buff *skb = rx_ring->skb; - int cpu = smp_processor_id(); unsigned int xdp_xmit = 0; struct netdev_queue *nq; struct xdp_buff xdp; @@ -9154,6 +9153,7 @@ static int igb_clean_rx_irq(struct igb_q_vector *q_vector, const int budget) if (xdp_xmit & IGB_XDP_TX) { struct igb_ring *tx_ring = igb_xdp_tx_queue_mapping(adapter); + int cpu = smp_processor_id(); nq = txring_txq(tx_ring); __netif_tx_lock(nq, cpu);