Searched refs:bpf_tc_hook (Results 1 – 3 of 3) sorted by relevance
/linux/tools/lib/bpf/ |
A D | netlink.c | 445 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl() 450 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete() 455 int bpf_tc_hook_create(struct bpf_tc_hook *hook) in bpf_tc_hook_create() 459 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create() 467 static int __bpf_tc_detach(const struct bpf_tc_hook *hook, 471 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook) in bpf_tc_hook_destroy() 473 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy() 565 !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_attach() 638 !OPTS_VALID(hook, bpf_tc_hook) || in __bpf_tc_detach() 690 int bpf_tc_detach(const struct bpf_tc_hook *hook, in bpf_tc_detach() [all …]
|
A D | libbpf.h | 719 struct bpf_tc_hook { struct 739 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook); argument 740 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook); 741 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook, 743 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook, 745 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
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()
|
Completed in 11 milliseconds