diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2005-09-28 00:22:58 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-28 00:22:58 +0200 |
commit | 2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a (patch) | |
tree | 7b439a9d765c2cb63f33deddda649014957bfc00 /net | |
parent | [NET]: Use non-recursive algorithm in skb_copy_datagram_iovec() (diff) | |
download | linux-2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a.tar.xz linux-2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a.zip |
[NET]: Prefetch dev->qdisc_lock in dev_queue_xmit()
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 37c881070963..9066c874e273 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -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. */ |