Searched refs:bpf_tc_hook (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.15/tools/lib/bpf/ |
| D | netlink.c | 381 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config() 421 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify() 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() 556 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach() [all …]
|
| D | libbpf.h | 614 struct bpf_tc_hook { struct 634 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook); argument 635 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook); 636 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook, 638 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook, 640 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
|
| /Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
| 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()
|