Home
last modified time | relevance | path

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

123

/Linux-v5.15/tools/testing/selftests/bpf/verifier/
Dxdp_direct_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)),
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 …]
Dmeta_access.c5 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 …]
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)),
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-v5.15/samples/bpf/
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()
Dxdp_redirect_cpu.bpf.c97 u16 get_dest_port_ipv4_udp(struct xdp_md *ctx, u64 nh_off) in get_dest_port_ipv4_udp()
119 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()
323 int xdp_prognum4_ddos_filter_pktgen(struct xdp_md *ctx) in xdp_prognum4_ddos_filter_pktgen()
399 u32 get_ipv4_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv4_hash_ip_pair()
416 u32 get_ipv6_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv6_hash_ip_pair()
[all …]
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()
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()
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()
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()
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-v5.15/tools/testing/selftests/bpf/progs/
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()
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()
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()
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()
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()
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()
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()
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()
Dtest_xdp.c80 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
153 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
214 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp_loop.c76 static __always_inline int handle_ipv4(struct xdp_md *xdp) in handle_ipv4()
149 static __always_inline int handle_ipv6(struct xdp_md *xdp) in handle_ipv6()
210 int _xdp_tx_iptunnel(struct xdp_md *xdp) in _xdp_tx_iptunnel()
Dtest_xdp_link.c9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
/Linux-v5.15/net/bpf/
Dtest_run.c695 static int xdp_convert_md_to_buff(struct xdp_md *xdp_md, struct xdp_buff *xdp) in xdp_convert_md_to_buff() argument
701 if (!xdp_md) in xdp_convert_md_to_buff()
704 if (xdp_md->egress_ifindex != 0) in xdp_convert_md_to_buff()
707 ingress_ifindex = xdp_md->ingress_ifindex; in xdp_convert_md_to_buff()
708 rx_queue_index = xdp_md->rx_queue_index; in xdp_convert_md_to_buff()
733 xdp->data = xdp->data_meta + xdp_md->data; in xdp_convert_md_to_buff()
741 static void xdp_convert_buff_to_md(struct xdp_buff *xdp, struct xdp_md *xdp_md) in xdp_convert_buff_to_md() argument
743 if (!xdp_md) in xdp_convert_buff_to_md()
746 xdp_md->data = xdp->data - xdp->data_meta; in xdp_convert_buff_to_md()
747 xdp_md->data_end = xdp->data_end - xdp->data_meta; in xdp_convert_buff_to_md()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
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()

123