summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <dada1@cosmosbay.com>2005-09-27 15:22:58 -0700
committerDavid S. Miller <davem@davemloft.net>2005-09-27 15:22:58 -0700
commit2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a (patch)
tree7b439a9d765c2cb63f33deddda649014957bfc00 /net/core
parentbc8dfcb93970ad7139c976356bfc99d7e251deaf (diff)
downloadop-kernel-dev-2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a.zip
op-kernel-dev-2d7ceece08ad940d0ceac98ab1b5a3b82dfc2a0a.tar.gz
[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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 37c8810..9066c87 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.
*/
OpenPOWER on IntegriCloud