Home
last modified time | relevance | path

Searched refs:l2_hdr (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c113 __u8 *l2_hdr = NULL; in __encap_ipv4() local
211 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv4()
214 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv4()
220 struct vxlanhdr___local *vxlan_hdr = (struct vxlanhdr___local *)l2_hdr; in __encap_ipv4()
225 l2_hdr += sizeof(struct vxlanhdr___local); in __encap_ipv4()
228 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) in __encap_ipv4()
280 __u8 *l2_hdr = NULL; in __encap_ipv6() local
341 l2_hdr = (__u8 *)&h_outer + olen; in __encap_ipv6()
344 *(__u32 *)l2_hdr = mpls_label; in __encap_ipv6()
350 struct vxlanhdr___local *vxlan_hdr = (struct vxlanhdr___local *)l2_hdr; in __encap_ipv6()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c1470 unsigned char *l2_hdr = skb->data; in hns3_set_l2l3l4() local
1498 l2_hdr = skb_inner_mac_header(skb); in hns3_set_l2l3l4()
1507 l2_len = l3.hdr - l2_hdr; in hns3_set_l2l3l4()