]> git.baikalelectronics.ru Git - kernel.git/commit
udp: Complement partial checksum for GSO packet
authorSean Tranchetti <stranche@codeaurora.org>
Tue, 1 May 2018 00:01:02 +0000 (18:01 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 May 2018 14:59:32 +0000 (10:59 -0400)
commit4e7ecf8c67b4a20f437280391c270bd4bfccde9b
tree41eca4ee86b60fddaf011f56648e01bf7fcb245a
parentfe630ae8e21f2550d55f4d0e906b134ed4afd4e9
udp: Complement partial checksum for GSO packet

Using the udp_v4_check() function to calculate the pseudo header
for the newly segmented UDP packets results in assigning the complement
of the value to the UDP header checksum field.

Always undo the complement the partial checksum value in order to
match the case where GSO is not used on the UDP transmit path.

Fixes: 3b27020e57aa ("udp: add udp gso")
Signed-off-by: Sean Tranchetti <stranche@codeaurora.org>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_offload.c