diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-30 16:07:09 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-01 09:39:48 -0400 |
commit | e4cbb02a1070ebf0185f67a8887cc05f8a183d71 (patch) | |
tree | 5aa9604bf4b9040f41dbb04d548d3b4c71cd26ff /net/core | |
parent | 5dac94e109263e75ab7fe4e66ef88e9b49f500bf (diff) |
net: add a prefetch in socket backlog processing
TCP or UDP stacks have big enough latencies that prefetching next
pointer is worth it.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/sock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 836bca6485f5..1a8835117fd6 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1700,6 +1700,7 @@ static void __release_sock(struct sock *sk) do { struct sk_buff *next = skb->next; + prefetch(next); WARN_ON_ONCE(skb_dst_is_noref(skb)); skb->next = NULL; sk_backlog_rcv(sk, skb); |