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>
This commit is contained in:
parent
6b61088893
commit
721f345aa2
1 changed files with 1 additions and 0 deletions
|
@ -1073,6 +1073,7 @@ static void udp6_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
|
||||||
*/
|
*/
|
||||||
offset = skb_transport_offset(skb);
|
offset = skb_transport_offset(skb);
|
||||||
skb->csum = skb_checksum(skb, offset, skb->len - offset, 0);
|
skb->csum = skb_checksum(skb, offset, skb->len - offset, 0);
|
||||||
|
csum = skb->csum;
|
||||||
|
|
||||||
skb->ip_summed = CHECKSUM_NONE;
|
skb->ip_summed = CHECKSUM_NONE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue