Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tcp: Do not reload skb pointer after skb_gro_receive().

This is not necessary. skb_gro_receive() will never change what
'head' points to.

In it's original implementation (see commit 71d93b39e52e ("net: Add
skb_gro_receive")), it did:

====================
+ *head = nskb;
+ nskb->next = p->next;
+ p->next = NULL;
====================

This sequence was removed in commit 58025e46ea2d ("net: gro: remove
obsolete code from skb_gro_receive()")

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Eric Dumazet <edumazet@google.com>

-2
-2
net/ipv4/tcp_offload.c
··· 268 268 goto out_check_final; 269 269 } 270 270 271 - p = *head; 272 - th2 = tcp_hdr(p); 273 271 tcp_flag_word(th2) |= flags & (TCP_FLAG_FIN | TCP_FLAG_PSH); 274 272 275 273 out_check_final: