tcp: do not clear skb->csum if already zero
Freshly allocated skbs have their csum field cleared already. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a52fe46ef1
commit
4f2266748e
@@ -969,7 +969,6 @@ static void tcp_v6_send_response(const struct sock *sk, struct sk_buff *skb, u32
|
||||
fl6.flowlabel = label;
|
||||
|
||||
buff->ip_summed = CHECKSUM_PARTIAL;
|
||||
buff->csum = 0;
|
||||
|
||||
__tcp_v6_send_check(buff, &fl6.saddr, &fl6.daddr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user