diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2005-09-27 15:22:58 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-27 15:22:58 -0700 |
commit | 2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a (patch) | |
tree | 7b439a9d765c2cb63f33deddda649014957bfc00 /net/core/dev.c | |
parent | bc8dfcb93970ad7139c976356bfc99d7e251deaf (diff) | |
download | linux-2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a.tar.gz linux-2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a.tar.bz2 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/core/dev.c')
-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. */ |