Home
last modified time | relevance | path

Searched refs:encap_hdr (Results 1 – 4 of 4) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_lwt_ip_encap.c18 struct encap_hdr { in bpf_lwt_encap_gre() struct
24 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
39 hdr.iph.tot_len = bpf_htons(skb->len + sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
44 sizeof(struct encap_hdr)); in bpf_lwt_encap_gre()
54 struct encap_hdr { in bpf_lwt_encap_gre6() struct
60 memset(&hdr, 0, sizeof(struct encap_hdr)); in bpf_lwt_encap_gre6()
78 sizeof(struct encap_hdr)); in bpf_lwt_encap_gre6()
/linux/drivers/net/ethernet/sfc/
H A Dtc_encap_actions.c255 eth = (struct ethhdr *)encap->encap_hdr; in efx_gen_tun_header_eth()
271 ip = (struct iphdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_ipv4()
291 ip = (struct ipv6hdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_ipv6()
309 udp = (struct udphdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_udp()
321 vxlan = (struct vxlanhdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_vxlan()
334 geneve = (struct genevehdr *)(encap->encap_hdr + encap->encap_hdr_len); in efx_gen_tun_header_geneve()
351 BUILD_BUG_ON(sizeof(encap->encap_hdr) < vxlan4_header_len); in efx_gen_vxlan_header_ipv4()
362 BUILD_BUG_ON(sizeof(encap->encap_hdr) < geneve4_header_len); in efx_gen_geneve_header_ipv4()
373 BUILD_BUG_ON(sizeof(encap->encap_hdr) < vxlan6_header_len); in efx_gen_vxlan_header_ipv6()
383 BUILD_BUG_ON(sizeof(encap->encap_hdr) < geneve6_header_len); in efx_gen_geneve_header_ipv6()
[all …]
H A Dtc_encap_actions.h77 u8 encap_hdr[EFX_TC_MAX_ENCAP_HDR]; member
H A Dmae.c970 encap->encap_hdr, in efx_mae_allocate_encap_md()
999 encap->encap_hdr, in efx_mae_update_encap_md()