Home
last modified time | relevance | path

Searched refs:xdp_md (Results 1 - 25 of 117) sorted by relevance

12345

/kernel/linux/linux-6.6/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()
25 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in end_mangling_bad_access_1()
45 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in end_mangling_bad_access_2()
46 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in end_mangling_bad_access_2()
65 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
66 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in __flag()
86 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
87 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in __flag()
107 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag()
108 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_en in __flag()
[all...]
H A Dverifier_meta_access.c23 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test1()
24 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test1()
45 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test2()
46 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test2()
65 : __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)), in meta_access_test3()
66 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test3()
86 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in meta_access_test4()
87 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)), in meta_access_test4()
88 __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in meta_access_test4()
110 __imm_const(xdp_md_data, offsetof(struct xdp_md, dat in meta_access_test5()
[all...]
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 *xd
[all...]
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 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 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()
37 int xdp_dummy_cm_frags(struct xdp_md *ctx) in xdp_dummy_cm_frags()
H A Dverifier_bounds.c960 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_64_bit_signed_boundary_1()
961 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_64_bit_signed_boundary_1()
990 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_64_bit_signed_boundary_2()
991 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_64_bit_signed_boundary_2()
1015 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in bound_greater_than_u32_max()
1016 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in bound_greater_than_u32_max()
1041 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_32_bit_signed_boundary_1()
1042 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_32_bit_signed_boundary_1()
1071 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_32_bit_signed_boundary_2()
1072 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_en in crossing_32_bit_signed_boundary_2()
[all...]
H 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()
H A Dxsk_xdp_progs.c18 SEC("xdp.frags") int xsk_def_prog(struct xdp_md *xdp) in xsk_def_prog()
23 SEC("xdp.frags") int xsk_xdp_drop(struct xdp_md *xdp) in xsk_xdp_drop()
32 SEC("xdp.frags") int xsk_xdp_populate_metadata(struct xdp_md *xdp) in xsk_xdp_populate_metadata()
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_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,
28 int rx(struct xdp_md *ctx) in rx()
H 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()
H 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()
H 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()
228 int xdp_prognum3(struct xdp_md *ctx) in xdp_prognum3()
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 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 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 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 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()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H 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()
H 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()
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()
H A Dtest_xdp_redirect.c18 int xdp_redirect_to_111(struct xdp_md *xdp) in xdp_redirect_to_111()
23 int xdp_redirect_to_222(struct xdp_md *xdp) in xdp_redirect_to_222()
H 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()
/kernel/linux/linux-5.10/samples/bpf/
H A Dxdp_redirect_cpu_kern.c158 u16 get_dest_port_ipv4_udp(struct xdp_md *ctx, u64 nh_off) in get_dest_port_ipv4_udp()
180 int get_proto_ipv4(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv4()
192 int get_proto_ipv6(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv6()
204 int xdp_prognum0_no_touch(struct xdp_md *ctx) in xdp_prognum0_no_touch()
234 int xdp_prognum1_touch_data(struct xdp_md *ctx) in xdp_prognum1_touch_data()
277 int xdp_prognum2_round_robin(struct xdp_md *ctx) in xdp_prognum2_round_robin()
325 int xdp_prognum3_proto_separate(struct xdp_md *ctx) in xdp_prognum3_proto_separate()
393 int xdp_prognum4_ddos_filter_pktgen(struct xdp_md *ctx) in xdp_prognum4_ddos_filter_pktgen()
472 u32 get_ipv4_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv4_hash_ip_pair()
489 u32 get_ipv6_hash_ip_pair(struct xdp_md *ct
[all...]

Completed in 12 milliseconds

12345