]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: do not clear again skb->csum in tcp_init_nondata_skb()
authorEric Dumazet <edumazet@google.com>
Fri, 3 Nov 2017 13:18:59 +0000 (06:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:14:54 +0000 (22:14 +0900)
commit7d498a9fcbc67d025d4c53888400a457ac7a95bb
tree6bd07d160416b06eb850310dea5819c69141ff79
parentaac0cbc4031651f37f4907dd298c0e6c8db02c59
tcp: do not clear again skb->csum in tcp_init_nondata_skb()

tcp_init_nondata_skb() is fed with freshly allocated skbs.
They already have a cleared csum field, no need to clear it again.

This is based on Neal review on commit a0ec7540c86a ("tcp: do not mangle
skb->cb[] in tcp_make_synack()"), noticing I did not clear skb->csum.

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