mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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>
This commit is contained in:
1 parent
5dac94e109
commit
e4cbb02a10
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user