tcp: factorize ip_summed setting
authorEric Dumazet <edumazet@google.com>
Wed, 27 Oct 2021 20:19:21 +0000 (13:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 11:44:39 +0000 (12:44 +0100)
commita52fe46ef160b4101b8d14209729f49a71388b52
tree0f637638fd14d9d18fc55afe80e0c949118d6b9a
parentf401da475f98c1840d48c9e00a6eb228237357c0
tcp: factorize ip_summed setting

Setting skb->ip_summed to CHECKSUM_PARTIAL can be centralized
in tcp_stream_alloc_skb() and __mptcp_do_alloc_tx_skb()
instead of being done multiple times.

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
net/mptcp/protocol.c