Home
last modified time | relevance | path

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

/external/libbpf/src/
Dnetlink.c432 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config()
472 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify()
496 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl()
501 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete()
506 int bpf_tc_hook_create(struct bpf_tc_hook *hook) in bpf_tc_hook_create()
510 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create()
518 static int __bpf_tc_detach(const struct bpf_tc_hook *hook,
522 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook) in bpf_tc_hook_destroy()
524 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy()
607 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach()
[all …]
Dlibbpf.h919 struct bpf_tc_hook { struct
939 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook); argument
940 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook);
941 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook,
943 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook,
945 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dtc_bpf.c25 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()