Lines Matching refs:uh
358 struct udphdr *uh = udp_hdr(skb); in update_ip_l4_checksum() local
360 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in update_ip_l4_checksum()
361 inet_proto_csum_replace4(&uh->check, skb, in update_ip_l4_checksum()
363 if (!uh->check) in update_ip_l4_checksum()
364 uh->check = CSUM_MANGLED_0; in update_ip_l4_checksum()
391 struct udphdr *uh = udp_hdr(skb); in update_ipv6_checksum() local
393 if (uh->check || skb->ip_summed == CHECKSUM_PARTIAL) { in update_ipv6_checksum()
394 inet_proto_csum_replace16(&uh->check, skb, in update_ipv6_checksum()
396 if (!uh->check) in update_ipv6_checksum()
397 uh->check = CSUM_MANGLED_0; in update_ipv6_checksum()
674 struct udphdr *uh; in set_udp() local
683 uh = udp_hdr(skb); in set_udp()
685 src = OVS_MASKED(uh->source, key->udp_src, mask->udp_src); in set_udp()
686 dst = OVS_MASKED(uh->dest, key->udp_dst, mask->udp_dst); in set_udp()
688 if (uh->check && skb->ip_summed != CHECKSUM_PARTIAL) { in set_udp()
689 if (likely(src != uh->source)) { in set_udp()
690 set_tp_port(skb, &uh->source, src, &uh->check); in set_udp()
693 if (likely(dst != uh->dest)) { in set_udp()
694 set_tp_port(skb, &uh->dest, dst, &uh->check); in set_udp()
698 if (unlikely(!uh->check)) in set_udp()
699 uh->check = CSUM_MANGLED_0; in set_udp()
701 uh->source = src; in set_udp()
702 uh->dest = dst; in set_udp()