Home
last modified time | relevance | path

Searched refs:vxh (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_vxlan.c91 struct vxlanhdr *vxh; in mlx5e_gen_ip_tunnel_header_vxlan() local
96 vxh = (struct vxlanhdr *)((char *)udp + sizeof(struct udphdr)); in mlx5e_gen_ip_tunnel_header_vxlan()
100 vxh->vx_flags = VXLAN_HF_VNI; in mlx5e_gen_ip_tunnel_header_vxlan()
101 vxh->vx_vni = vxlan_vni_field(tun_id); in mlx5e_gen_ip_tunnel_header_vxlan()
104 vxlan_build_gbp_hdr(vxh, md); in mlx5e_gen_ip_tunnel_header_vxlan()
/linux/include/net/
A Dvxlan.h583 static inline void vxlan_build_gbp_hdr(struct vxlanhdr *vxh, const struct vxlan_metadata *md) in vxlan_build_gbp_hdr() argument
590 gbp = (struct vxlanhdr_gbp *)vxh; in vxlan_build_gbp_hdr()
591 vxh->vx_flags |= VXLAN_HF_GBP; in vxlan_build_gbp_hdr()
/linux/drivers/net/vxlan/
A Dvxlan_core.c2168 static int vxlan_build_gpe_hdr(struct vxlanhdr *vxh, __be16 protocol) in vxlan_build_gpe_hdr() argument
2170 struct vxlanhdr_gpe *gpe = (struct vxlanhdr_gpe *)vxh; in vxlan_build_gpe_hdr()
2184 struct vxlanhdr *vxh; in vxlan_build_skb() local
2213 vxh = __skb_push(skb, sizeof(*vxh)); in vxlan_build_skb()
2214 vxh->vx_flags = VXLAN_HF_VNI; in vxlan_build_skb()
2215 vxh->vx_vni = vxlan_vni_field(vni); in vxlan_build_skb()
2221 vxh->vx_vni |= vxlan_compute_rco(start, skb->csum_offset); in vxlan_build_skb()
2222 vxh->vx_flags |= VXLAN_HF_RCO; in vxlan_build_skb()
2231 vxlan_build_gbp_hdr(vxh, md); in vxlan_build_skb()
2233 err = vxlan_build_gpe_hdr(vxh, skb->protocol); in vxlan_build_skb()

Completed in 21 milliseconds