Skip to content

Commit

Permalink
[NET]: Prefetch dev->qdisc_lock in dev_queue_xmit()
Browse files Browse the repository at this point in the history
We know the lock is going to be taken.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 27, 2005
1 parent bc8dfcb commit 2d7ceec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 2d7ceec

Please sign in to comment.