Home
last modified time | relevance | path

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

1234

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dverifier_xdp_direct_packet_access.c24 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in end_mangling_bad_access_1()
45 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in end_mangling_bad_access_2()
65 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
86 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
107 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
127 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
148 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
169 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
191 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
212 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
[all …]
H A Dverifier_meta_access.c23 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test1()
45 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test2()
86 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test4()
110 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test5()
132 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test6()
154 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test7()
174 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test8()
195 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test9()
224 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test10()
253 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test11()
[all …]
H A Dxdp_redirect_map.c17 int xdp_redirect_map_0(struct xdp_md *xdp) in xdp_redirect_map_0()
23 int xdp_redirect_map_1(struct xdp_md *xdp) in xdp_redirect_map_1()
29 int xdp_redirect_map_2(struct xdp_md *xdp) in xdp_redirect_map_2()
41 static int xdp_count(struct xdp_md *xdp, __u32 key) in xdp_count()
62 int xdp_count_0(struct xdp_md *xdp) in xdp_count_0()
68 int xdp_count_1(struct xdp_md *xdp) in xdp_count_1()
74 int xdp_count_2(struct xdp_md *xdp) in xdp_count_2()
86 static int store_mac(struct xdp_md *xdp, __u32 id) in store_mac()
108 int store_mac_1(struct xdp_md *xdp) in store_mac_1()
114 int store_mac_2(struct xdp_md *xdp) in store_mac_2()
H A Dxdp_features.c65 xdp_process_echo_packet(struct xdp_md *xdp, bool dut) in xdp_process_echo_packet()
135 xdp_update_stats(struct xdp_md *xdp, bool tx, bool dut) in xdp_update_stats()
156 int xdp_tester_check_tx(struct xdp_md *xdp) in xdp_tester_check_tx()
164 int xdp_tester_check_rx(struct xdp_md *xdp) in xdp_tester_check_rx()
174 int xdp_do_pass(struct xdp_md *xdp) in xdp_do_pass()
182 int xdp_do_drop(struct xdp_md *xdp) in xdp_do_drop()
191 int xdp_do_aborted(struct xdp_md *xdp) in xdp_do_aborted()
200 int xdp_do_tx(struct xdp_md *xdp) in xdp_do_tx()
217 int xdp_do_redirect(struct xdp_md *xdp) in xdp_do_redirect()
252 int xdp_do_redirect_cpumap(struct xdp_md *xdp) in xdp_do_redirect_cpumap()
H A Dtest_xdp_with_cpumap_helpers.c18 int xdp_redir_prog(struct xdp_md *ctx) in xdp_redir_prog()
24 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
30 int xdp_dummy_cm(struct xdp_md *ctx) in xdp_dummy_cm()
42 int xdp_dummy_cm_frags(struct xdp_md *ctx) in xdp_dummy_cm_frags()
H 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()
45 int xdp_dummy_dm_frags(struct xdp_md *ctx) in xdp_dummy_dm_frags()
H A Dverifier_helper_packet_access.c35 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in test1_valid_packet_ptr_range()
36 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in test1_valid_packet_ptr_range()
54 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)) in packet_test2_unchecked_packet_ptr()
83 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in to_packet_test3_variable_add()
84 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in to_packet_test3_variable_add()
108 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in packet_ptr_with_bad_range_1()
109 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in packet_ptr_with_bad_range_1()
132 __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in ptr_with_too_short_range_1()
133 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in ptr_with_too_short_range_1()
H A Dxsk_xdp_progs.c19 SEC("xdp.frags") int xsk_def_prog(struct xdp_md *xdp) in xsk_def_prog()
24 SEC("xdp.frags") int xsk_xdp_drop(struct xdp_md *xdp) in xsk_xdp_drop()
33 SEC("xdp.frags") int xsk_xdp_populate_metadata(struct xdp_md *xdp) in xsk_xdp_populate_metadata()
56 SEC("xdp") int xsk_xdp_shared_umem(struct xdp_md *xdp) in xsk_xdp_shared_umem()
H A Dverifier_bounds.c1023 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_64_bit_signed_boundary_1()
1024 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_64_bit_signed_boundary_1()
1054 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_64_bit_signed_boundary_2()
1055 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_64_bit_signed_boundary_2()
1079 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in bound_greater_than_u32_max()
1080 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in bound_greater_than_u32_max()
1105 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_32_bit_signed_boundary_1()
1106 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_32_bit_signed_boundary_1()
1136 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_32_bit_signed_boundary_2()
1137 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_32_bit_signed_boundary_2()
H A Dtest_xdp_do_redirect.c29 int xdp_redirect(struct xdp_md *xdp) in xdp_redirect()
86 int xdp_count_pkts(struct xdp_md *xdp) in xdp_count_pkts()
102 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
108 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
H A Dxdp_metadata.c22 extern int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx,
24 extern int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, __u32 *hash,
26 extern int bpf_xdp_metadata_rx_vlan_tag(const struct xdp_md *ctx,
31 int rx(struct xdp_md *ctx) in rx()
H 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()
H A Dxdp_hw_metadata.c19 extern int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx,
21 extern int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, __u32 *hash,
23 extern int bpf_xdp_metadata_rx_vlan_tag(const struct xdp_md *ctx,
28 int rx(struct xdp_md *ctx) in rx()
H A Dtest_xdp_vlan.c106 int xdp_drop_vlan_4011(struct xdp_md *ctx) in xdp_drop_vlan_4011()
148 int xdp_vlan_change(struct xdp_md *ctx) in xdp_vlan_change()
182 int xdp_vlan_remove_outer(struct xdp_md *ctx) in xdp_vlan_remove_outer()
228 int xdp_vlan_remove_outer2(struct xdp_md *ctx) in xdp_vlan_remove_outer2()
H A Dtest_xdp_with_devmap_frags_helpers.c16 int xdp_dummy_dm(struct xdp_md *ctx) in xdp_dummy_dm()
22 int xdp_dummy_dm_frags(struct xdp_md *ctx) in xdp_dummy_dm_frags()
H A Dxdp_metadata2.c8 extern int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, __u32 *hash,
14 int freplace_rx(struct xdp_md *ctx) in freplace_rx()
H A Dxdp_redirect_multi_kern.c46 int xdp_redirect_map_multi_prog(struct xdp_md *ctx) in xdp_redirect_map_multi_prog()
84 int xdp_redirect_map_all_prog(struct xdp_md *ctx) in xdp_redirect_map_all_prog()
91 int xdp_devmap_prog(struct xdp_md *ctx) in xdp_devmap_prog()
H A Dtest_xdp_with_cpumap_frags_helpers.c16 int xdp_dummy_cm(struct xdp_md *ctx) in xdp_dummy_cm()
22 int xdp_dummy_cm_frags(struct xdp_md *ctx) in xdp_dummy_cm_frags()
H A Dfreplace_progmap.c13 int xdp_drop_prog(struct xdp_md *ctx) in xdp_drop_prog()
19 int xdp_cpumap_prog(struct xdp_md *ctx) in xdp_cpumap_prog()
H A Dverifier_ldsx.c157 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)) in ldsx_ctx_1()
171 : __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in ldsx_ctx_2()
185 : __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in ldsx_ctx_3()
H A Dverifier_xadd.c77 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
78 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in __flag()
H A Dxdping_kern.c60 static __always_inline int icmp_check(struct xdp_md *ctx, int type) in icmp_check()
91 int xdping_client(struct xdp_md *ctx) in xdping_client()
154 int xdping_server(struct xdp_md *ctx) in xdping_server()
/linux-6.15/tools/testing/selftests/net/lib/
H A Dxdp_dummy.bpf.c8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
14 int xdp_dummy_prog_frags(struct xdp_md *ctx) in xdp_dummy_prog_frags()
/linux-6.15/samples/bpf/
H 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()
H A Dxdp_adjust_tail_kern.c71 static __always_inline int send_icmp4_too_big(struct xdp_md *xdp) in send_icmp4_too_big()
121 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
138 int _xdp_icmp(struct xdp_md *xdp) in _xdp_icmp()

1234