Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d7ceece authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

[NET]: Prefetch dev->qdisc_lock in dev_queue_xmit()



We know the lock is going to be taken.

Signed-off-by: default avatarEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bc8dfcb9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1259,6 +1259,8 @@ int dev_queue_xmit(struct sk_buff *skb)
	      	if (skb_checksum_help(skb, 0))
	      		goto out_kfree_skb;

	spin_lock_prefetch(&dev->queue_lock);

	/* Disable soft irqs for various locks below. Also 
	 * stops preemption for RCU. 
	 */