| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | verifier_xdp_direct_packet_access.c | 24 : __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_end)) in __flag() [all …]
|
| H A D | verifier_meta_access.c | 23 : __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, data)), in meta_access_test5() [all …]
|
| H A D | xdp_features.c | 65 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 D | test_xdp_with_devmap_helpers.c | 13 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 D | verifier_helper_packet_access.c | 35 __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 D | xsk_xdp_progs.c | 22 SEC("xdp.frags") int xsk_def_prog(struct xdp_md *xdp) in xsk_def_prog() 27 SEC("xdp.frags") int xsk_xdp_drop(struct xdp_md *xdp) in xsk_xdp_drop() 36 SEC("xdp.frags") int xsk_xdp_populate_metadata(struct xdp_md *xdp) in xsk_xdp_populate_metadata() 59 SEC("xdp") int xsk_xdp_shared_umem(struct xdp_md *xdp) in xsk_xdp_shared_umem() 76 SEC("xdp.frags") int xsk_xdp_adjust_tail(struct xdp_md *xdp)
|
| H A D | xdp_redirect_map.c | 17 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) 62 int xdp_count_0(struct xdp_md *xdp) 68 int xdp_count_1(struct xdp_md *xdp) 74 int xdp_count_2(struct xdp_md *xdp) 86 static int store_mac(struct xdp_md *xdp, __u32 id) 108 int store_mac_1(struct xdp_md *xdp) 114 int store_mac_2(struct xdp_md *xd [all...] |
| H A D | test_xdp_do_redirect.c | 29 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 D | xdp_metadata.c | 29 extern int bpf_xdp_metadata_rx_timestamp(const struct xdp_md *ctx, 31 extern int bpf_xdp_metadata_rx_hash(const struct xdp_md *ctx, __u32 *hash, in rx() 33 extern int bpf_xdp_metadata_rx_vlan_tag(const struct xdp_md *ctx, in rx() 38 int rx(struct xdp_md *ctx) in rx() 106 int redirect(struct xdp_md *ctx)
|
| H A D | test_check_mtu.c | 23 int xdp_use_helper_basic(struct xdp_md *ctx) in xdp_use_helper_basic() 34 int xdp_use_helper(struct xdp_md *ctx) in xdp_use_helper() 60 int xdp_exceed_mtu(struct xdp_md *ctx) in xdp_exceed_mtu() 86 int xdp_minus_delta(struct xdp_md *ctx) in xdp_minus_delta() 110 int xdp_input_len(struct xdp_md *ctx) in xdp_input_len() 134 int xdp_input_len_exceed(struct xdp_md *ctx) in xdp_input_len_exceed()
|
| H A D | verifier_bounds.c | 1061 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_64_bit_signed_boundary_1() 1062 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_64_bit_signed_boundary_1() 1092 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in __flag() 1093 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in __flag() 1117 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in bound_greater_than_u32_max() 1118 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in bound_greater_than_u32_max() 1143 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_32_bit_signed_boundary_1() 1144 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in crossing_32_bit_signed_boundary_1() 1174 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)), in crossing_32_bit_signed_boundary_2() 1175 __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_en in crossing_32_bit_signed_boundary_2() [all...] |
| H A D | xdp_hw_metadata.c | 19 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 D | xdp_redirect_multi_kern.c | 46 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_devmap_prog() 91 int xdp_devmap_prog(struct xdp_md *ctx) in xdp_devmap_prog()
|
| H A D | test_xdp_vlan.c | 106 int xdp_drop_vlan_4011(struct xdp_md *ctx) in xdp_prognum0() 148 int xdp_vlan_change(struct xdp_md *ctx) in xdp_prognum1() 182 int xdp_vlan_remove_outer(struct xdp_md *ctx) in xdp_prognum2() 228 int xdp_vlan_remove_outer2(struct xdp_md *ctx) in xdp_prognum3()
|
| H A D | test_xdp_with_devmap_frags_helpers.c | 16 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 D | xdp_metadata2.c | 8 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 D | test_xdp_with_cpumap_frags_helpers.c | 16 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 D | freplace_progmap.c | 13 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 D | verifier_ldsx.c | 155 __description("LDSX, xdp s32 xdp_md->data") in ldsx_ctx_1() 164 : __imm_const(xdp_md_data, offsetof(struct xdp_md, data)) in ldsx_ctx_2() 169 __description("LDSX, xdp s32 xdp_md->data_end") in ldsx_ctx_2() 178 : __imm_const(xdp_md_data_end, offsetof(struct xdp_md, data_end)) in ldsx_ctx_3() 183 __description("LDSX, xdp s32 xdp_md->data_meta") in ldsx_ctx_3() 192 : __imm_const(xdp_md_data_meta, offsetof(struct xdp_md, data_meta)) in ldsx_ctx_4()
|
| H A D | verifier_xadd.c | 77 : __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 D | xdping_kern.c | 60 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()
|
| H A D | test_parse_tcp_hdr_opt.c | 36 static int parse_hdr_opt(const struct xdp_md *xdp, struct hdr_opt_state *state) in parse_hdr_opt() 82 int xdp_ingress_v6(struct xdp_md *xdp) in xdp_ingress_v6()
|
| /linux/tools/testing/selftests/net/lib/ |
| H A D | xdp_native.bpf.c | 17 extern int bpf_xdp_pull_data(struct xdp_md *xdp, __u32 len) __ksym __weak; 61 static void record_stats(struct xdp_md *ctx, __u32 stat_type) in record_stats() 71 static struct udphdr *filter_udphdr(struct xdp_md *ctx, __u16 port) in filter_udphdr() 139 static int xdp_mode_pass(struct xdp_md *ctx, __u16 port) in swap_machdr() 152 static int xdp_mode_drop_handler(struct xdp_md *ctx, __u16 port) in xdp_mode_tx_handler() 175 static int xdp_mode_tx_handler(struct xdp_md *ctx, __u16 port) in xdp_mode_tx_handler() 271 static void *update_pkt(struct xdp_md *ctx, __s16 offset, __u32 *udp_csum) in csum_fold_helper() 334 static int xdp_adjst_tail_shrnk_data(struct xdp_md *ctx, __u16 offset, in xdp_adjst_tail_grow_data() 370 static int xdp_adjst_tail_grow_data(struct xdp_md *ctx, __u16 offset) in xdp_adjst_tail() 421 static int xdp_adjst_tail(struct xdp_md *ct in xdp_adjst_head_shrnk_data() [all...] |
| H A D | xdp_dummy.bpf.c | 8 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/samples/bpf/ |
| H A D | xdp_fwd_kern.c | 43 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()
|