Home
last modified time | relevance | path

Searched refs:bpf_tc_hook (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/tools/lib/bpf/
H A Dnetlink.c542 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config()
582 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify()
606 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl()
611 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete()
616 int bpf_tc_hook_create(struct bpf_tc_hook *hook) in bpf_tc_hook_create()
620 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create()
628 static int __bpf_tc_detach(const struct bpf_tc_hook *hook,
632 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook) in bpf_tc_hook_destroy()
634 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy()
718 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach()
[all …]
H A Dlibbpf.h1201 struct bpf_tc_hook { struct
1221 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook); argument
1222 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook);
1223 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook,
1225 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook,
1227 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_redirect.c264 static int qdisc_clsact_create(struct bpf_tc_hook *qdisc_hook, int ifindex) in qdisc_clsact_create()
281 static int xgress_filter_add(struct bpf_tc_hook *qdisc_hook, in xgress_filter_add()
319 LIBBPF_OPTS(bpf_tc_hook, qdisc_src_fwd); in netns_load_bpf()
320 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst_fwd); in netns_load_bpf()
625 LIBBPF_OPTS(bpf_tc_hook, qdisc_src_fwd); in netns_load_dtime_bpf()
626 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst_fwd); in netns_load_dtime_bpf()
627 LIBBPF_OPTS(bpf_tc_hook, qdisc_src); in netns_load_dtime_bpf()
628 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst); in netns_load_dtime_bpf()
1091 LIBBPF_OPTS(bpf_tc_hook, qdisc_tun_fwd); in test_tc_redirect_peer_l3()
1092 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst_fwd); in test_tc_redirect_peer_l3()
H A Dtest_tunnel.c275 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog()
318 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_vxlan_tunnel()
402 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_ip6vxlan_tunnel()
472 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_ipip_tunnel()
H A Dtc_bpf.c26 static int test_tc_bpf_basic(const struct bpf_tc_hook *hook, int fd) in test_tc_bpf_basic()
69 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd) in test_tc_bpf_api()
72 DECLARE_LIBBPF_OPTS(bpf_tc_hook, inv_hook, .attach_point = BPF_TC_INGRESS); in test_tc_bpf_api()
333 DECLARE_LIBBPF_OPTS(bpf_tc_hook, hook, .ifindex = LO_IFINDEX, in tc_bpf_root()
H A Dxdp_do_redirect.c41 static int attach_tc_prog(struct bpf_tc_hook *hook, int fd) in attach_tc_prog()
106 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_xdp_do_redirect()
H A Dxfrm_info.c72 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog()
294 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .attach_point = BPF_TC_INGRESS); in _test_xfrm_info()
H A Ddecap_sanity.c18 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS); in test_decap_sanity()
H A Dbtf_skc_cls_ingress.c26 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS); in prepare_netns()
H A Dassign_reuse.c84 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in run_assign_reuse()
H A Dvrf_socket_lookup.c107 LIBBPF_OPTS(bpf_tc_hook, hook, .attach_point = BPF_TC_INGRESS); in attach_progs()
H A Dtc_links.c526 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback); in test_tc_chain_classic()
1580 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback); in test_tc_chain_mixed()
1688 LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_tc_links_ingress()
1854 LIBBPF_OPTS(bpf_tc_hook, tc_hook); in test_tc_links_dev_mixed()
H A Dtc_opts.c566 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback); in test_tc_chain_classic()
2247 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback); in test_tc_opts_delete_empty()
2279 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback); in test_tc_chain_mixed()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c33 LIBBPF_OPTS(bpf_tc_hook, hook, in cleanup()
231 LIBBPF_OPTS(bpf_tc_hook, hook, in syncookie_attach()