Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/bpf/progs/
Dtest_xdp_vlan.c207 bpf_xdp_adjust_head(ctx, VLAN_HDR_SZ); in xdp_prognum2()
259 bpf_xdp_adjust_head(ctx, VLAN_HDR_SZ); in xdp_prognum3()
Dtest_xdp.c113 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
183 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
Dtest_xdp_loop.c109 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in handle_ipv4()
179 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in handle_ipv6()
Dtest_xdp_noinline.c289 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in encap_v6()
337 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in encap_v4()
369 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in encap_v4()
388 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct ipv6hdr))) in decap_v6()
406 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in decap_v4()
/Linux-v5.4/samples/bpf/
Dxdp_tx_iptunnel_kern.c112 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()
Dxdp_adjust_tail_kern.c71 if (bpf_xdp_adjust_head(xdp, 0 - headroom)) in send_icmp4_too_big()
/Linux-v5.4/tools/testing/selftests/bpf/
Dbpf_helpers.h84 static int (*bpf_xdp_adjust_head)(void *ctx, int offset) = variable
/Linux-v5.4/net/core/
Dfilter.c3380 BPF_CALL_2(bpf_xdp_adjust_head, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument
3401 .func = bpf_xdp_adjust_head,
5947 func == bpf_xdp_adjust_head || in bpf_helper_changes_pkt_data()