Lines Matching refs:check
44 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
134 uh->check = ~csum_fold(csum_add(partial, in __skb_udp_tunnel_segment()
138 uh->check = gso_make_checksum(skb, ~uh->check); in __skb_udp_tunnel_segment()
139 if (uh->check == 0) in __skb_udp_tunnel_segment()
140 uh->check = CSUM_MANGLED_0; in __skb_udp_tunnel_segment()
144 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment()
203 if (uh->check) { in __udpv4_gso_segment_csum()
204 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
206 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
208 if (!uh->check) in __udpv4_gso_segment_csum()
209 uh->check = CSUM_MANGLED_0; in __udpv4_gso_segment_csum()
213 csum_replace4(&iph->check, *oldip, *newip); in __udpv4_gso_segment_csum()
272 __sum16 check; in __udp_gso_segment() local
313 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
326 uh->check = check; in __udp_gso_segment()
329 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
331 uh->check = gso_make_checksum(seg, ~check) ? : in __udp_gso_segment()
341 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
344 uh->check = check; in __udp_gso_segment()
347 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
349 uh->check = gso_make_checksum(seg, ~check) ? : CSUM_MANGLED_0; in __udp_gso_segment()
404 uh->check = 0; in udp4_ufo_fragment()
406 uh->check = udp_v4_check(skb->len, iph->saddr, iph->daddr, csum); in udp4_ufo_fragment()
407 if (uh->check == 0) in udp4_ufo_fragment()
408 uh->check = CSUM_MANGLED_0; in udp4_ufo_fragment()
439 if (!uh->check) { in udp_gro_receive_segment()
535 (uh->check && skb->ip_summed != CHECKSUM_PARTIAL && in udp_gro_receive()
555 (!uh->check ^ !uh2->check)) { in udp_gro_receive()
595 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, in udp4_gro_receive()
598 else if (uh->check) in udp4_gro_receive()
622 skb->csum_offset = offsetof(struct udphdr, check); in udp_gro_complete_segment()
648 skb_shinfo(skb)->gso_type = uh->check ? SKB_GSO_UDP_TUNNEL_CSUM in udp_gro_complete()
697 if (uh->check) in udp4_gro_complete()
698 uh->check = ~udp_v4_check(skb->len - nhoff, iph->saddr, in udp4_gro_complete()