Lines Matching refs:vh

658 					  struct vxlanhdr *vh, size_t hdrlen,  in vxlan_gro_remcsum()  argument
666 return vh; in vxlan_gro_remcsum()
674 vh = skb_gro_remcsum_process(skb, (void *)vh, off, hdrlen, in vxlan_gro_remcsum()
679 return vh; in vxlan_gro_remcsum()
688 struct vxlanhdr *vh, *vh2; in vxlan_gro_prepare_receive() local
696 hlen = off_vx + sizeof(*vh); in vxlan_gro_prepare_receive()
697 vh = skb_gro_header(skb, hlen, off_vx); in vxlan_gro_prepare_receive()
698 if (unlikely(!vh)) in vxlan_gro_prepare_receive()
701 skb_gro_postpull_rcsum(skb, vh, sizeof(struct vxlanhdr)); in vxlan_gro_prepare_receive()
703 flags = vh->vx_flags; in vxlan_gro_prepare_receive()
706 vh = vxlan_gro_remcsum(skb, off_vx, vh, sizeof(struct vxlanhdr), in vxlan_gro_prepare_receive()
707 vh->vx_vni, grc, in vxlan_gro_prepare_receive()
711 if (!vh) in vxlan_gro_prepare_receive()
722 if (vh->vx_flags != vh2->vx_flags || in vxlan_gro_prepare_receive()
723 vh->vx_vni != vh2->vx_vni) { in vxlan_gro_prepare_receive()
729 return vh; in vxlan_gro_prepare_receive()
755 struct vxlanhdr *vh; in vxlan_gpe_gro_receive() local
759 vh = vxlan_gro_prepare_receive(sk, head, skb, &grc); in vxlan_gpe_gro_receive()
760 if (vh) { in vxlan_gpe_gro_receive()
761 if (!vxlan_parse_gpe_proto(vh, &protocol)) in vxlan_gpe_gro_receive()
784 struct vxlanhdr *vh = (struct vxlanhdr *)(skb->data + nhoff); in vxlan_gpe_gro_complete() local
789 if (!vxlan_parse_gpe_proto(vh, &protocol)) in vxlan_gpe_gro_complete()
1567 const struct vxlanhdr *vh = vxlan_hdr(skb); in vxlan_remcsum() local
1571 if (!(vh->vx_flags & VXLAN_HF_RCO) || skb->remcsum_offload) in vxlan_remcsum()
1574 start = vxlan_rco_start(vh->vx_vni); in vxlan_remcsum()
1575 offset = start + vxlan_rco_offset(vh->vx_vni); in vxlan_remcsum()
1589 const struct vxlanhdr *vh = vxlan_hdr(skb); in vxlan_parse_gbp_hdr() local
1593 gbp = (const struct vxlanhdr_gbp *)vh; in vxlan_parse_gbp_hdr()
1595 if (!(vh->vx_flags & VXLAN_HF_GBP)) in vxlan_parse_gbp_hdr()
1677 const struct vxlanhdr *vh; in vxlan_rcv() local
1694 vh = vxlan_hdr(skb); in vxlan_rcv()
1696 if (!(vh->vx_flags & VXLAN_HF_VNI)) { in vxlan_rcv()
1698 ntohl(vh->vx_flags), ntohl(vh->vx_vni)); in vxlan_rcv()
1708 vni = vxlan_vni(vh->vx_vni); in vxlan_rcv()
1716 if (vh->vx_flags & vxlan->cfg.reserved_bits.vx_flags || in vxlan_rcv()
1717 vh->vx_vni & vxlan->cfg.reserved_bits.vx_vni) { in vxlan_rcv()
1735 if (!vxlan_parse_gpe_proto(vh, &protocol)) in vxlan_rcv()