diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 1e3dfb20b1cf..b083c09e3d2d 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -153,7 +153,7 @@ try_again: | |||
153 | goto csum_copy_err; | 153 | goto csum_copy_err; |
154 | } | 154 | } |
155 | 155 | ||
156 | if (skb->ip_summed == CHECKSUM_UNNECESSARY) | 156 | if (skb_csum_unnecessary(skb)) |
157 | err = skb_copy_datagram_iovec(skb, sizeof(struct udphdr), | 157 | err = skb_copy_datagram_iovec(skb, sizeof(struct udphdr), |
158 | msg->msg_iov, copied ); | 158 | msg->msg_iov, copied ); |
159 | else { | 159 | else { |
@@ -397,7 +397,7 @@ static inline int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, | |||
397 | skb->len, proto, skb->csum)) | 397 | skb->len, proto, skb->csum)) |
398 | skb->ip_summed = CHECKSUM_UNNECESSARY; | 398 | skb->ip_summed = CHECKSUM_UNNECESSARY; |
399 | 399 | ||
400 | if (skb->ip_summed != CHECKSUM_UNNECESSARY) | 400 | if (!skb_csum_unnecessary(skb)) |
401 | skb->csum = ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, | 401 | skb->csum = ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, |
402 | &ipv6_hdr(skb)->daddr, | 402 | &ipv6_hdr(skb)->daddr, |
403 | skb->len, proto, 0)); | 403 | skb->len, proto, 0)); |