Skip to content

Commit 5356f7e

Browse files
Subash Abhinov Kasiviswanathangregkh
authored andcommitted
udpv6: Fix the checksum computation when HW checksum does not apply
[ Upstream commit 63ecc3d9436f8012e49dc846d6cb0a85a3433517 ] 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(). Fixes: d39d938 ("ipv6: Introduce udpv6_send_skb()") Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2ec54b2 commit 5356f7e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/ipv6/udp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,6 +1007,7 @@ static void udp6_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
10071007
*/
10081008
offset = skb_transport_offset(skb);
10091009
skb->csum = skb_checksum(skb, offset, skb->len - offset, 0);
1010+
csum = skb->csum;
10101011

10111012
skb->ip_summed = CHECKSUM_NONE;
10121013

0 commit comments

Comments
 (0)