Searched refs:bpf_tc_hook (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/tools/lib/bpf/ |
D | netlink.c | 435 static int attach_point_to_config(struct bpf_tc_hook *hook, in attach_point_to_config() 475 static int tc_qdisc_modify(struct bpf_tc_hook *hook, int cmd, int flags) in tc_qdisc_modify() 499 static int tc_qdisc_create_excl(struct bpf_tc_hook *hook) in tc_qdisc_create_excl() 504 static int tc_qdisc_delete(struct bpf_tc_hook *hook) in tc_qdisc_delete() 509 int bpf_tc_hook_create(struct bpf_tc_hook *hook) in bpf_tc_hook_create() 513 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_create() 521 static int __bpf_tc_detach(const struct bpf_tc_hook *hook, 525 int bpf_tc_hook_destroy(struct bpf_tc_hook *hook) in bpf_tc_hook_destroy() 527 if (!hook || !OPTS_VALID(hook, bpf_tc_hook) || in bpf_tc_hook_destroy() 611 int bpf_tc_attach(const struct bpf_tc_hook *hook, struct bpf_tc_opts *opts) in bpf_tc_attach() [all …]
|
D | libbpf.h | 985 struct bpf_tc_hook { struct 1005 LIBBPF_API int bpf_tc_hook_create(struct bpf_tc_hook *hook); argument 1006 LIBBPF_API int bpf_tc_hook_destroy(struct bpf_tc_hook *hook); 1007 LIBBPF_API int bpf_tc_attach(const struct bpf_tc_hook *hook, 1009 LIBBPF_API int bpf_tc_detach(const struct bpf_tc_hook *hook, 1011 LIBBPF_API int bpf_tc_query(const struct bpf_tc_hook *hook,
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
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()
|
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()
|
D | xdp_do_redirect.c | 47 static int attach_tc_prog(struct bpf_tc_hook *hook, int fd) in attach_tc_prog() 107 DECLARE_LIBBPF_OPTS(bpf_tc_hook, tc_hook, in serial_test_xdp_do_redirect()
|
/linux-6.1.9/tools/testing/selftests/bpf/ |
D | xdp_synproxy.c | 33 LIBBPF_OPTS(bpf_tc_hook, hook, in cleanup() 229 LIBBPF_OPTS(bpf_tc_hook, hook, in syncookie_attach()
|