Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c203 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv4() local
205 vxlan_hdr->vx_flags = VXLAN_FLAGS; in __encap_ipv4()
206 vxlan_hdr->vx_vni = bpf_htonl((VXLAN_VNI & VXLAN_VNI_MASK) << 8); in __encap_ipv4()
333 struct vxlanhdr *vxlan_hdr = (struct vxlanhdr *)l2_hdr; in __encap_ipv6() local
335 vxlan_hdr->vx_flags = VXLAN_FLAGS; in __encap_ipv6()
336 vxlan_hdr->vx_vni = bpf_htonl((VXLAN_VNI & VXLAN_VNI_MASK) << 8); in __encap_ipv6()
/linux-6.1.9/include/net/
Dvxlan.h386 static inline struct vxlanhdr *vxlan_hdr(struct sk_buff *skb) in vxlan_hdr() function
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c1537 skb_remcsum_process(skb, (void *)(vxlan_hdr(skb) + 1), start, offset, in vxlan_remcsum()
1679 unparsed = *vxlan_hdr(skb); in vxlan_rcv()
1683 ntohl(vxlan_hdr(skb)->vx_flags), in vxlan_rcv()
1684 ntohl(vxlan_hdr(skb)->vx_vni)); in vxlan_rcv()
1695 vni = vxlan_vni(vxlan_hdr(skb)->vx_vni); in vxlan_rcv()
1807 hdr = vxlan_hdr(skb); in vxlan_err_lookup()