/Linux-v6.1/tools/testing/selftests/bpf/verifier/ |
D | xdp_direct_packet_access.c | 4 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)), 6 offsetof(struct xdp_md, data_end)), 22 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)), 24 offsetof(struct xdp_md, data_end)), 40 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)), 42 offsetof(struct xdp_md, data_end)), 57 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)), 59 offsetof(struct xdp_md, data_end)), 75 BPF_LDX_MEM(BPF_W, BPF_REG_2, BPF_REG_1, offsetof(struct xdp_md, data)), 77 offsetof(struct xdp_md, data_end)), [all …]
|
D | meta_access.c | 5 offsetof(struct xdp_md, data_meta)), 6 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, offsetof(struct xdp_md, data)), 21 offsetof(struct xdp_md, data_meta)), 22 BPF_LDX_MEM(BPF_W, BPF_REG_3, BPF_REG_1, offsetof(struct xdp_md, data)), 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)), 61 BPF_LDX_MEM(BPF_W, BPF_REG_4, BPF_REG_1, offsetof(struct xdp_md, data)), 77 offsetof(struct xdp_md, data_meta)), [all …]
|
D | helper_packet_access.c | 4 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)),
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | test_xdp_with_cpumap_helpers.c | 16 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()
|
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()
|
D | xdp_redirect_map.c | 14 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()
|
D | test_check_mtu.c | 22 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()
|
D | xdp_redirect_multi_kern.c | 38 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()
|
D | test_xdp_redirect.c | 16 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()
|
D | test_xdp_vlan.c | 106 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()
|
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()
|
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()
|
D | test_xdp_do_redirect.c | 16 int xdp_redirect(struct xdp_md *xdp) in xdp_redirect() 73 int xdp_count_pkts(struct xdp_md *xdp) in xdp_count_pkts()
|
D | xdping_kern.c | 59 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()
|
D | test_xdp.c | 78 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()
|
D | test_xdp_loop.c | 74 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()
|
/Linux-v6.1/samples/bpf/ |
D | xdp_redirect_cpu.bpf.c | 97 u16 get_dest_port_ipv4_udp(struct xdp_md *ctx, u64 nh_off) in get_dest_port_ipv4_udp() 117 int get_proto_ipv4(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv4() 129 int get_proto_ipv6(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv6() 141 int xdp_prognum0_no_touch(struct xdp_md *ctx) in xdp_prognum0_no_touch() 168 int xdp_prognum1_touch_data(struct xdp_md *ctx) in xdp_prognum1_touch_data() 210 int xdp_prognum2_round_robin(struct xdp_md *ctx) in xdp_prognum2_round_robin() 255 int xdp_prognum3_proto_separate(struct xdp_md *ctx) in xdp_prognum3_proto_separate() 321 int xdp_prognum4_ddos_filter_pktgen(struct xdp_md *ctx) in xdp_prognum4_ddos_filter_pktgen() 397 u32 get_ipv4_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv4_hash_ip_pair() 414 u32 get_ipv6_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv6_hash_ip_pair() [all …]
|
D | xdp_redirect_map.bpf.c | 38 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() 92 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
|
D | xdp_redirect_map_multi.bpf.c | 30 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()
|
D | xdp_redirect.bpf.c | 20 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()
|
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()
|
D | xdp_adjust_tail_kern.c | 70 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()
|
D | xdp_tx_iptunnel_kern.c | 77 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-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_context_test_run.c | 11 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()
|
/Linux-v6.1/net/bpf/ |
D | test_run.c | 1217 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() argument 1223 if (!xdp_md) in xdp_convert_md_to_buff() 1226 if (xdp_md->egress_ifindex != 0) in xdp_convert_md_to_buff() 1229 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff() 1230 rx_queue_index = xdp_md->rx_queue_index; in xdp_convert_md_to_buff() 1255 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff() 1263 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() argument 1265 if (!xdp_md) in xdp_convert_buff_to_md() 1268 xdp_md->data = xdp->data - xdp->data_meta; in xdp_convert_buff_to_md() 1269 xdp_md->data_end = xdp->data_end - xdp->data_meta; in xdp_convert_buff_to_md() [all …]
|