Searched refs:bpf_tc_hook (Results 1 - 15 of 15) sorted by relevance

/linux-master/tools/lib/bpf/
H A Dnetlink.c542 static int attach_point_to_config(struct bpf_tc_hook *hook,
582 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags)
606 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook)
611 static int tc_qdisc_delete(struct bpf_tc_hook *hook)
616 int bpf_tc_hook_create(struct bpf_tc_hook *hook)
620 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) ||
628 static int __bpf_tc_detach(const struct bpf_tc_hook *hook,
632 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook)
634 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) ||
718 int bpf_tc_attach(const struct bpf_tc_hook *hoo
[all...]
H A Dlibbpf.h1235 struct bpf_tc_hook { struct
1255 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook);
1256 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook);
1257 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook,
1259 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook,
1261 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Ddecap_sanity.c19 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS);
H A Dtc_bpf.c26 static int test_tc_bpf_basic(const struct bpf_tc_hook *hook, int fd)
69 static int test_tc_bpf_api(struct bpf_tc_hook *hook, int fd)
72 DECLARE_LIBBPF_OPTS(bpf_tc_hook, inv_hook, .attach_point = BPF_TC_INGRESS);
333 DECLARE_LIBBPF_OPTS(bpf_tc_hook, hook, .ifindex = LO_IFINDEX,
H A Dtcp_custom_syncookie.c52 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS);
H A Dxfrm_info.c72 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd)
294 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .attach_point = BPF_TC_INGRESS);
H A Dxdp_do_redirect.c41 static int attach_tc_prog(struct bpf_tc_hook *hook, int fd)
106 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook,
H A Dtest_tunnel.c367 static int attach_tc_prog(struct bpf_tc_hook *hook, int igr_fd, int egr_fd)
410 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook,
494 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook,
564 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook,
629 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook,
H A Dtc_redirect.c314 static int qdisc_clsact_create(struct bpf_tc_hook *qdisc_hook, int ifindex)
331 static int xgress_filter_add(struct bpf_tc_hook *qdisc_hook,
369 LIBBPF_OPTS(bpf_tc_hook, qdisc_src_fwd);
370 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst_fwd);
675 LIBBPF_OPTS(bpf_tc_hook, qdisc_src_fwd);
676 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst_fwd);
677 LIBBPF_OPTS(bpf_tc_hook, qdisc_src);
678 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst);
1141 LIBBPF_OPTS(bpf_tc_hook, qdisc_tun_fwd);
1142 LIBBPF_OPTS(bpf_tc_hook, qdisc_dst_fw
[all...]
H A Dbtf_skc_cls_ingress.c26 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS);
H A Dvrf_socket_lookup.c107 LIBBPF_OPTS(bpf_tc_hook, hook, .attach_point = BPF_TC_INGRESS);
H A Dassign_reuse.c84 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook,
H A Dtc_links.c524 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback);
1578 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback);
1686 LIBBPF_OPTS(bpf_tc_hook, tc_hook,
1793 LIBBPF_OPTS(bpf_tc_hook, tc_hook);
H A Dtc_opts.c566 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback);
2247 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback);
2279 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .ifindex = loopback);
/linux-master/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c33 LIBBPF_OPTS(bpf_tc_hook, hook,
231 LIBBPF_OPTS(bpf_tc_hook, hook,

Completed in 176 milliseconds