Searched refs:bpf_tc_hook (Results 1 – 10 of 10) sorted by relevance
/linux-6.3-rc2/tools/lib/bpf/ |
A D | netlink.c | 595 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl() 600 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete() 605 int bpf_tc_hook_create(struct bpf_tc_hook *hook) in bpf_tc_hook_create() 609 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create() 617 static int __bpf_tc_detach(const struct bpf_tc_hook *hook, 621 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook) in bpf_tc_hook_destroy() 623 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy() 716 !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_attach() 790 !OPTS_VALID(hook, bpf_tc_hook) || in __bpf_tc_detach() 842 int bpf_tc_detach(const struct bpf_tc_hook *hook, in bpf_tc_detach() [all …]
|
A D | libbpf.h | 1077 struct bpf_tc_hook { struct 1097 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook); argument 1098 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook); 1099 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook, 1101 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook, 1103 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | tc_redirect.c | 249 static int qdisc_clsact_create(struct bpf_tc_hook *qdisc_hook, int ifindex) in qdisc_clsact_create() 266 static int xgress_filter_add(struct bpf_tc_hook *qdisc_hook, in xgress_filter_add() 304 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_src_fwd); in netns_load_bpf() 305 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_dst_fwd); in netns_load_bpf() 550 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_src_fwd); in netns_load_dtime_bpf() 551 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_dst_fwd); in netns_load_dtime_bpf() 552 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_src); in netns_load_dtime_bpf() 553 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_dst); in netns_load_dtime_bpf() 1006 LIBBPF_OPTS(bpf_tc_hook, qdisc_tun_fwd); in test_tc_redirect_peer_l3() 1007 LIBBPF_OPTS(bpf_tc_hook, qdisc_veth_dst_fwd); in test_tc_redirect_peer_l3()
|
A D | test_tunnel.c | 214 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog() 257 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_vxlan_tunnel() 341 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_ip6vxlan_tunnel()
|
A D | tc_bpf.c | 25 static int test_tc_bpf_basic(const struct bpf_tc_hook *hook, int fd) in test_tc_bpf_basic() 68 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd) in test_tc_bpf_api() 71 DECLARE_LIBBPF_OPTS(bpf_tc_hook, inv_hook, .attach_point = BPF_TC_INGRESS); in test_tc_bpf_api() 332 DECLARE_LIBBPF_OPTS(bpf_tc_hook, hook, .ifindex = LO_IFINDEX, in test_tc_bpf()
|
A D | xdp_do_redirect.c | 49 static int attach_tc_prog(struct bpf_tc_hook *hook, int fd) in attach_tc_prog() 114 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in test_xdp_do_redirect()
|
A D | xfrm_info.c | 87 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd) in attach_tc_prog() 309 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .attach_point = BPF_TC_INGRESS); in _test_xfrm_info()
|
A D | decap_sanity.c | 27 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS); in test_decap_sanity()
|
A D | btf_skc_cls_ingress.c | 26 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS); in prepare_netns()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | xdp_synproxy.c | 33 LIBBPF_OPTS(bpf_tc_hook, hook, in cleanup() 231 LIBBPF_OPTS(bpf_tc_hook, hook, in syncookie_attach()
|
Completed in 15 milliseconds