Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c148d163 authored by Hannes Frederic Sowa's avatar Hannes Frederic Sowa Committed by David S. Miller
Browse files

ipv6: fix checksum annotation in udp6_csum_init



Cc: Tom Herbert <tom@herbertland.com>
Fixes: 4068579e ("net: Implmement RFC 6936 (zero RX csums for UDP/IPv6")
Signed-off-by: default avatarHannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5119bd16
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -78,8 +78,11 @@ int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto)
	 * we accept a checksum of zero here. When we find the socket
	 * for the UDP packet we'll check if that socket allows zero checksum
	 * for IPv6 (set by socket option).
	 *
	 * Note, we are only interested in != 0 or == 0, thus the
	 * force to int.
	 */
	return skb_checksum_init_zero_check(skb, proto, uh->check,
	return (__force int)skb_checksum_init_zero_check(skb, proto, uh->check,
							 ip6_compute_pseudo);
}
EXPORT_SYMBOL(udp6_csum_init);