Home
last modified time | relevance | path

Searched refs:xdp_md (Results 1 – 25 of 55) sorted by relevance

123

/linux/tools/testing/selftests/bpf/verifier/
A Dxdp_direct_packet_access.c6 offsetof(struct xdp_md, data_end)),
24 offsetof(struct xdp_md, data_end)),
42 offsetof(struct xdp_md, data_end)),
59 offsetof(struct xdp_md, data_end)),
77 offsetof(struct xdp_md, data_end)),
95 offsetof(struct xdp_md, data_end)),
112 offsetof(struct xdp_md, data_end)),
130 offsetof(struct xdp_md, data_end)),
148 offsetof(struct xdp_md, data_end)),
167 offsetof(struct xdp_md, data_end)),
[all …]
A Dmeta_access.c5 offsetof(struct xdp_md, data_meta)),
21 offsetof(struct xdp_md, data_meta)),
40 offsetof(struct xdp_md, data_meta)),
42 offsetof(struct xdp_md, data_end)),
58 offsetof(struct xdp_md, data_meta)),
60 offsetof(struct xdp_md, data_end)),
77 offsetof(struct xdp_md, data_meta)),
96 offsetof(struct xdp_md, data_meta)),
115 offsetof(struct xdp_md, data_meta)),
133 offsetof(struct xdp_md, data_meta)),
[all …]
A Dhelper_packet_access.c4 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)),
6 offsetof(struct xdp_md, data_end)),
25 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)),
39 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)),
41 offsetof(struct xdp_md, data_end)),
64 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)),
66 offsetof(struct xdp_md, data_end)),
85 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)),
87 offsetof(struct xdp_md, data_end)),
A Dxadd.c37 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)),
39 offsetof(struct xdp_md, data_end)),
/linux/samples/bpf/
A Dxdp_redirect_cpu.bpf.c119 int get_proto_ipv4(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv4()
131 int get_proto_ipv6(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv6()
143 int xdp_prognum0_no_touch(struct xdp_md *ctx) in xdp_prognum0_no_touch()
170 int xdp_prognum1_touch_data(struct xdp_md *ctx) in xdp_prognum1_touch_data()
212 int xdp_prognum2_round_robin(struct xdp_md *ctx) in xdp_prognum2_round_robin()
257 int xdp_prognum3_proto_separate(struct xdp_md *ctx) in xdp_prognum3_proto_separate()
440 int xdp_prognum5_lb_hash_ip_pairs(struct xdp_md *ctx) in xdp_prognum5_lb_hash_ip_pairs()
497 int xdp_redirect_cpu_devmap(struct xdp_md *ctx) in xdp_redirect_cpu_devmap()
513 int xdp_redirect_cpu_pass(struct xdp_md *ctx) in xdp_redirect_cpu_pass()
519 int xdp_redirect_cpu_drop(struct xdp_md *ctx) in xdp_redirect_cpu_drop()
[all …]
A Dxdp_redirect_map.bpf.c38 static __always_inline int xdp_redirect_map(struct xdp_md *ctx, void *redirect_map) in xdp_redirect_map()
60 int xdp_redirect_map_general(struct xdp_md *ctx) in xdp_redirect_map_general()
66 int xdp_redirect_map_native(struct xdp_md *ctx) in xdp_redirect_map_native()
72 int xdp_redirect_map_egress(struct xdp_md *ctx) in xdp_redirect_map_egress()
90 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
A Dxdp_redirect_map_multi.bpf.c30 static int xdp_redirect_map(struct xdp_md *ctx, void *forward_map) in xdp_redirect_map()
45 int xdp_redirect_map_general(struct xdp_md *ctx) in xdp_redirect_map_general()
51 int xdp_redirect_map_native(struct xdp_md *ctx) in xdp_redirect_map_native()
57 int xdp_devmap_prog(struct xdp_md *ctx) in xdp_devmap_prog()
A Dxdp_redirect.bpf.c20 int xdp_redirect_prog(struct xdp_md *ctx) in xdp_redirect_prog()
44 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
A Dxdp_fwd_kern.c43 static __always_inline int xdp_fwd_flags(struct xdp_md *ctx, u32 flags) in xdp_fwd_flags()
147 int xdp_fwd_prog(struct xdp_md *ctx) in xdp_fwd_prog()
153 int xdp_fwd_direct_prog(struct xdp_md *ctx) in xdp_fwd_direct_prog()
A Dxdp_adjust_tail_kern.c70 static __always_inline int send_icmp4_too_big(struct xdp_md *xdp) in send_icmp4_too_big()
120 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
137 int _xdp_icmp(struct xdp_md *xdp) in _xdp_icmp()
A Dxdp_tx_iptunnel_kern.c77 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
152 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
216 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
/linux/tools/testing/selftests/bpf/progs/
A Dtest_check_mtu.c22 int xdp_use_helper_basic(struct xdp_md *ctx) in xdp_use_helper_basic()
33 int xdp_use_helper(struct xdp_md *ctx) in xdp_use_helper()
59 int xdp_exceed_mtu(struct xdp_md *ctx) in xdp_exceed_mtu()
85 int xdp_minus_delta(struct xdp_md *ctx) in xdp_minus_delta()
109 int xdp_input_len(struct xdp_md *ctx) in xdp_input_len()
133 int xdp_input_len_exceed(struct xdp_md *ctx) in xdp_input_len_exceed()
A Dxdp_redirect_map.c14 int xdp_redirect_map_0(struct xdp_md *xdp) in xdp_redirect_map_0()
20 int xdp_redirect_map_1(struct xdp_md *xdp) in xdp_redirect_map_1()
26 int xdp_redirect_map_2(struct xdp_md *xdp) in xdp_redirect_map_2()
A Dtest_xdp_with_cpumap_helpers.c16 int xdp_redir_prog(struct xdp_md *ctx) in xdp_redir_prog()
22 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
28 int xdp_dummy_cm(struct xdp_md *ctx) in xdp_dummy_cm()
A Dtest_xdp_with_devmap_helpers.c13 int xdp_redir_prog(struct xdp_md *ctx) in xdp_redir_prog()
22 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
31 int xdp_dummy_dm(struct xdp_md *ctx) in xdp_dummy_dm()
A Dtest_xdp_vlan.c106 int xdp_prognum0(struct xdp_md *ctx) in xdp_prognum0()
148 int xdp_prognum1(struct xdp_md *ctx) in xdp_prognum1()
182 int xdp_prognum2(struct xdp_md *ctx) in xdp_prognum2()
241 int xdp_prognum3(struct xdp_md *ctx) in xdp_prognum3()
A Dxdp_redirect_multi_kern.c38 int xdp_redirect_map_multi_prog(struct xdp_md *ctx) in xdp_redirect_map_multi_prog()
67 int xdp_redirect_map_all_prog(struct xdp_md *ctx) in xdp_redirect_map_all_prog()
74 int xdp_devmap_prog(struct xdp_md *ctx) in xdp_devmap_prog()
A Dtest_xdp_redirect.c16 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
21 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
A Dxdping_kern.c59 static __always_inline int icmp_check(struct xdp_md *ctx, int type) in icmp_check()
90 int xdping_client(struct xdp_md *ctx) in xdping_client()
154 int xdping_server(struct xdp_md *ctx) in xdping_server()
A Dtest_xdp.c78 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
151 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
212 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
A Dtest_xdp_loop.c74 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
147 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
208 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
A Dtest_xdp_noinline.c278 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6()
321 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4()
375 bool decap_v6(struct xdp_md *xdp, void **data, void **data_end, bool inner_v4) in decap_v6()
396 bool decap_v4(struct xdp_md *xdp, void **data, void **data_end) in decap_v4()
692 bool is_ipv6, struct xdp_md *xdp) in process_packet()
801 int balancer_ingress_v4(struct xdp_md *ctx) in balancer_ingress_v4()
820 int balancer_ingress_v6(struct xdp_md *ctx) in balancer_ingress_v6()
A Dtest_xdp_link.c9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
/linux/net/bpf/
A Dtest_run.c699 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() argument
705 if (!xdp_md) in xdp_convert_md_to_buff()
708 if (xdp_md->egress_ifindex != 0) in xdp_convert_md_to_buff()
711 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff()
712 rx_queue_index = xdp_md->rx_queue_index; in xdp_convert_md_to_buff()
737 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff()
745 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() argument
747 if (!xdp_md) in xdp_convert_buff_to_md()
753 if (xdp_md->ingress_ifindex) in xdp_convert_buff_to_md()
767 struct xdp_md *ctx; in bpf_prog_test_run_xdp()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
A Dxdp_context_test_run.c11 struct xdp_md ctx = { in test_xdp_context_error()
32 char bad_ctx[sizeof(struct xdp_md) + 1]; in test_xdp_context_test_run()
33 struct xdp_md ctx_in, ctx_out; in test_xdp_context_test_run()

Completed in 40 milliseconds

123