Lines Matching refs:check
46 partial = csum_sub(csum_unfold(uh->check), partial); in __skb_udp_tunnel_segment()
136 uh->check = ~csum_fold(csum_add(partial, in __skb_udp_tunnel_segment()
140 uh->check = gso_make_checksum(skb, ~uh->check); in __skb_udp_tunnel_segment()
141 if (uh->check == 0) in __skb_udp_tunnel_segment()
142 uh->check = CSUM_MANGLED_0; in __skb_udp_tunnel_segment()
146 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment()
205 if (uh->check) { in __udpv4_gso_segment_csum()
206 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
208 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
210 if (!uh->check) in __udpv4_gso_segment_csum()
211 uh->check = CSUM_MANGLED_0; in __udpv4_gso_segment_csum()
215 csum_replace4(&iph->check, *oldip, *newip); in __udpv4_gso_segment_csum()
274 __sum16 check; in __udp_gso_segment() local
322 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
335 uh->check = check; in __udp_gso_segment()
338 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
340 uh->check = gso_make_checksum(seg, ~check) ? : in __udp_gso_segment()
350 check = csum16_add(csum16_sub(uh->check, uh->len), newlen); in __udp_gso_segment()
353 uh->check = check; in __udp_gso_segment()
356 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
358 uh->check = gso_make_checksum(seg, ~check) ? : CSUM_MANGLED_0; in __udp_gso_segment()
413 uh->check = 0; in udp4_ufo_fragment()
415 uh->check = udp_v4_check(skb->len, iph->saddr, iph->daddr, csum); in udp4_ufo_fragment()
416 if (uh->check == 0) in udp4_ufo_fragment()
417 uh->check = CSUM_MANGLED_0; in udp4_ufo_fragment()
475 if (!uh->check) { in udp_gro_receive_segment()
571 (uh->check && skb->ip_summed != CHECKSUM_PARTIAL && in udp_gro_receive()
591 (!uh->check ^ !uh2->check)) { in udp_gro_receive()
635 if (skb_gro_checksum_validate_zero_check(skb, IPPROTO_UDP, uh->check, in udp4_gro_receive()
638 else if (uh->check) in udp4_gro_receive()
660 skb->csum_offset = offsetof(struct udphdr, check); in udp_gro_complete_segment()
685 skb_shinfo(skb)->gso_type = uh->check ? SKB_GSO_UDP_TUNNEL_CSUM in udp_gro_complete()
733 if (uh->check) in udp4_gro_complete()
734 uh->check = ~udp_v4_check(skb->len - nhoff, iph->saddr, in udp4_gro_complete()