| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/verifier/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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)),
|
| H A D | xadd.c | 37 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 D | xdp.c | 6 offsetof(struct xdp_md, ingress_ifindex)),
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A 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()
|
| H A 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()
|
| 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()
|
| H A 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()
|
| H A D | test_xdp_redirect.c | 18 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 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()
|
| H A D | test_xdp.c | 80 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 D | test_xdp_loop.c | 76 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 D | test_xdp_noinline.c | 278 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 D | test_xdp_link.c | 9 int xdp_handler(struct xdp_md *xdp) in xdp_handler()
|
| H A D | xdp_tx.c | 7 int xdp_tx(struct xdp_md *xdp) in xdp_tx()
|
| H A D | xdp_dummy.c | 8 int xdp_dummy_prog(struct xdp_md *ctx) in xdp_dummy_prog()
|
| H A D | metadata_unused.c | 10 int prog(struct xdp_md *ctx) in prog()
|
| H A D | metadata_used.c | 10 int prog(struct xdp_md *ctx) in prog()
|
| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | xdp_redirect_cpu_kern.c | 158 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 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()
|
| H A 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()
|
| H A D | xdp_redirect_map_kern.c | 56 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 D | xdp_redirect_kern.c | 56 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 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()
|