diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2005-09-27 18:22:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-09-27 18:22:58 -0400 |
commit | 2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a (patch) | |
tree | 7b439a9d765c2cb63f33deddda649014957bfc00 /net/core | |
parent | bc8dfcb93970ad7139c976356bfc99d7e251deaf (diff) |
[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')
-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) | |||
1259 | if (skb_checksum_help(skb, 0)) | 1259 | if (skb_checksum_help(skb, 0)) |
1260 | goto out_kfree_skb; | 1260 | goto out_kfree_skb; |
1261 | 1261 | ||
1262 | spin_lock_prefetch(&dev->queue_lock); | ||
1263 | |||
1262 | /* Disable soft irqs for various locks below. Also | 1264 | /* Disable soft irqs for various locks below. Also |
1263 | * stops preemption for RCU. | 1265 | * stops preemption for RCU. |
1264 | */ | 1266 | */ |