summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-04-30 16:07:09 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-01 09:39:48 -0400
commite4cbb02a1070ebf0185f67a8887cc05f8a183d71 (patch)
tree5aa9604bf4b9040f41dbb04d548d3b4c71cd26ff /net/core
parent5dac94e109263e75ab7fe4e66ef88e9b49f500bf (diff)
downloadop-kernel-dev-e4cbb02a1070ebf0185f67a8887cc05f8a183d71.zip
op-kernel-dev-e4cbb02a1070ebf0185f67a8887cc05f8a183d71.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index 836bca6..1a88351 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);
OpenPOWER on IntegriCloud