mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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 commit71d93b39e5
("net: Add skb_gro_receive")), it did: ==================== + *head = nskb; + nskb->next = p->next; + p->next = NULL; ==================== This sequence was removed in commit58025e46ea
("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>
This commit is contained in:
parent
0ca69d1399
commit
6892286e9c
@ -268,8 +268,6 @@ found:
|
|||||||
goto out_check_final;
|
goto out_check_final;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = *head;
|
|
||||||
th2 = tcp_hdr(p);
|
|
||||||
tcp_flag_word(th2) |= flags & (TCP_FLAG_FIN | TCP_FLAG_PSH);
|
tcp_flag_word(th2) |= flags & (TCP_FLAG_FIN | TCP_FLAG_PSH);
|
||||||
|
|
||||||
out_check_final:
|
out_check_final:
|
||||||
|
Loading…
Reference in New Issue
Block a user