Searched refs:bpf_xdp_adjust_head (Results 1 – 9 of 9) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp_vlan.c | 207 bpf_xdp_adjust_head(ctx, VLAN_HDR_SZ); in xdp_prognum2() 246 bpf_xdp_adjust_head(ctx, VLAN_HDR_SZ); in xdp_prognum3()
|
| H A D | test_xdp.c | 112 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 D | test_xdp_loop.c | 108 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 D | test_xdp_dynptr.c | 121 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()
|
| H A D | test_xdp_noinline.c | 290 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct ipv6hdr))) in encap_v6() 346 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(struct iphdr))) in encap_v4() 378 if (bpf_xdp_adjust_head(xdp, (int)sizeof(struct iphdr))) in encap_v4()
|
| H A D | dynptr_fail.c | 1433 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(*hdr))) 1458 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(*hdr))) in dynptr_size_invalid() 1944 if (bpf_xdp_adjust_head(xdp, 0 - (int)sizeof(*hdr)))
|
| /linux/samples/bpf/ |
| H A D | xdp_tx_iptunnel_kern.c | 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()
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | xdp_native.bpf.c | 498 if (bpf_xdp_adjust_head(ctx, offset) < 0) in xdp_adjst_head_shrnk_data() 567 if (bpf_xdp_adjust_head(ctx, 0 - offset) < 0) in xdp_adjst_head_grow_data()
|
| /linux/net/core/ |
| H A D | filter.c | 3992 BPF_CALL_2(bpf_xdp_adjust_head, struct xdp_buff *, xdp, int, offset) in BPF_CALL_2() argument 4013 .func = bpf_xdp_adjust_head,
|