Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/verifier/
H A 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 …]
H A 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 …]
H A 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)),
H A 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)),
H A Dxdp.c6 offsetof(struct xdp_md, ingress_ifindex)),
/OK3568_Linux_fs/kernel/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_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()
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 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()
H A 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()
H A 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()
H A Dtest_xdp_noinline.c278 bool encap_v6(struct xdp_md *xdp, struct ctl_value *cval, in encap_v6()
321 bool encap_v4(struct xdp_md *xdp, struct ctl_value *cval, in encap_v4()
375 bool decap_v6(struct xdp_md *xdp, void **data, void **data_end, bool inner_v4) in decap_v6()
396 bool decap_v4(struct xdp_md *xdp, void **data, void **data_end) in decap_v4()
692 bool is_ipv6, struct xdp_md *xdp) in process_packet()
801 int balancer_ingress_v4(struct xdp_md *ctx) in balancer_ingress_v4()
820 int balancer_ingress_v6(struct xdp_md *ctx) in balancer_ingress_v6()
H A Dtest_xdp_link.c9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
H A Dxdp_tx.c7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
H A Dxdp_dummy.c8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
H A Dmetadata_unused.c10 int prog(struct xdp_md *ctx) in prog()
H A Dmetadata_used.c10 int prog(struct xdp_md *ctx) in prog()
/OK3568_Linux_fs/kernel/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 *ctx, u64 nh_off) in get_ipv6_hash_ip_pair()
[all …]
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.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()
H A Dxdp_redirect_map_kern.c56 int xdp_redirect_map_prog(struct xdp_md *ctx) in xdp_redirect_map_prog()
87 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
H A Dxdp_redirect_kern.c56 int xdp_redirect_prog(struct xdp_md *ctx) in xdp_redirect_prog()
85 int xdp_redirect_dummy_prog(struct xdp_md *ctx) in xdp_redirect_dummy_prog()
H A 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()

12