Home
last modified time | relevance | path

Searched refs:bpf_xdp_adjust_head (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_vlan.c207 bpf_xdp_adjust_head(ctx, VLAN_HDR_SZ); in xdp_vlan_remove_outer()
246 bpf_xdp_adjust_head(ctx, VLAN_HDR_SZ); in xdp_vlan_remove_outer2()
H A Dtest_xdp_loop.c108 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
178 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
H A Dtest_xdp.c112 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
182 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
H A Dtest_xdp_dynptr.c121 if (bpf_xdp_adjust_head(xdp, 0 - (int)iphdr_sz)) in handle_ipv4()
200 if (bpf_xdp_adjust_head(xdp, 0 - (int)ipv6hdr_sz)) in handle_ipv6()
/linux/samples/bpf/
H A Dxdp_tx_iptunnel_kern.c7 * This program shows how to use bpf_xdp_adjust_head() by
112 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
184 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
H A Dxdp_adjust_tail_kern.c75 if (bpf_xdp_adjust_head(xdp, 0 - headroom)) in send_icmp4_too_big()
/linux/tools/testing/selftests/net/lib/
H A Dxdp_native.bpf.c433 if (bpf_xdp_adjust_head(ctx, offset) < 0) in xdp_adjst_head_shrnk_data()
502 if (bpf_xdp_adjust_head(ctx, 0 - offset) < 0) in xdp_adjst_head_grow_data()
/linux/net/core/
H A Dfilter.c3962 BPF_CALL_2(bpf_xdp_adjust_head, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument
3983 .func = bpf_xdp_adjust_head,