OSDN Git Service

tcp: do not clear TCP_SKB_CB(skb)->sacked if already zero
authorEric Dumazet <edumazet@google.com>
Wed, 27 Oct 2021 20:19:23 +0000 (13:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:44:39 +0000 (12:44 +0100)
commit8b7d8c2bdb7653605aaa1770b882e79b25ba4002
tree07320be5053af4596e9e59a9099f4b6aa36c1385
parent4f2266748eabc42f107ecb6a3cc5b34614b29a12
tcp: do not clear TCP_SKB_CB(skb)->sacked if already zero

Freshly allocated skbs have zero in skb->cb[] already.

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