OSDN Git Service

udpv6: Fix the checksum computation when HW checksum does not apply
authorSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Wed, 13 Sep 2017 23:56:39 +0000 (17:56 -0600)
committerSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Thu, 14 Sep 2017 01:08:51 +0000 (19:08 -0600)
commit721f345aa2ca1e5b5a7464f421a53cb2de3ccfab
tree38493eb6190713ee8fc5ef8889c872ccaebaa3dd
parent6b6108889376bf2040be064d6db923c1c30a4e69
udpv6: Fix the checksum computation when HW checksum does not apply

While trying an ESP transport mode encryption for UDPv6 packets of
datagram size 1436 with MTU 1500, checksum error was observed in
the secondary fragment.

This error occurs due to the UDP payload checksum being missed out
when computing the full checksum for these packets in
udp6_hwcsum_outgoing().

CRs-Fixed: 2087660
Change-Id: I8f9066a5fa731a7c81b6713dc93b1cf4824646f0
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
net/ipv6/udp.c