Searched refs:attach_point (Results 1 – 14 of 14) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | tc_bpf.c | 72 DECLARE_LIBBPF_OPTS(bpf_tc_hook, inv_hook, .attach_point = BPF_TC_INGRESS); in test_tc_bpf_api() 129 inv_hook.attach_point = 0xabcd; in test_tc_bpf_api() 150 inv_hook.attach_point = BPF_TC_INGRESS; in test_tc_bpf_api() 174 inv_hook.attach_point = BPF_TC_CUSTOM; in test_tc_bpf_api() 199 inv_hook.attach_point = BPF_TC_INGRESS; in test_tc_bpf_api() 334 .attach_point = BPF_TC_INGRESS); in tc_bpf_root() 353 hook.attach_point = BPF_TC_CUSTOM; in tc_bpf_root() 367 hook.attach_point = BPF_TC_INGRESS; in tc_bpf_root() 377 hook.attach_point = BPF_TC_EGRESS; in tc_bpf_root() 392 hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in tc_bpf_root()
|
H A D | test_tunnel.c | 288 hook->attach_point = BPF_TC_INGRESS; in attach_tc_prog() 297 hook->attach_point = BPF_TC_EGRESS; in attach_tc_prog() 319 .attach_point = BPF_TC_INGRESS); in test_vxlan_tunnel() 403 .attach_point = BPF_TC_INGRESS); in test_ip6vxlan_tunnel() 473 .attach_point = BPF_TC_INGRESS); in test_ipip_tunnel()
|
H A D | xfrm_info.c | 85 hook->attach_point = BPF_TC_INGRESS; in attach_tc_prog() 94 hook->attach_point = BPF_TC_EGRESS; in attach_tc_prog() 294 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .attach_point = BPF_TC_INGRESS); in _test_xfrm_info()
|
H A D | assign_reuse.c | 86 .attach_point = BPF_TC_INGRESS, in run_assign_reuse() 167 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in run_assign_reuse()
|
H A D | decap_sanity.c | 18 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS); in test_decap_sanity()
|
H A D | btf_skc_cls_ingress.c | 26 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS); in prepare_netns()
|
H A D | xdp_do_redirect.c | 107 .attach_point = BPF_TC_INGRESS); in test_xdp_do_redirect()
|
H A D | vrf_socket_lookup.c | 107 LIBBPF_OPTS(bpf_tc_hook, hook, .attach_point = BPF_TC_INGRESS); in attach_progs()
|
H A D | tc_links.c | 557 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_chain_classic() 613 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in test_tc_chain_classic() 1611 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_chain_mixed() 1669 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in test_tc_chain_mixed() 1690 .attach_point = BPF_TC_CUSTOM, in test_tc_links_ingress() 1926 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_links_dev_mixed()
|
H A D | tc_opts.c | 592 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_chain_classic() 651 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in test_tc_chain_classic() 2253 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_opts_delete_empty() 2262 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in test_tc_opts_delete_empty() 2303 tc_hook.attach_point = target == BPF_TCX_INGRESS ? in test_tc_chain_mixed() 2368 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in test_tc_chain_mixed()
|
H A D | tc_redirect.c | 270 qdisc_hook->attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in qdisc_clsact_create() 289 qdisc_hook->attach_point = xgress; in xgress_filter_add()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | netlink.c | 545 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config() 560 static int tc_get_tcm_parent(enum bpf_tc_attach_point attach_point, in tc_get_tcm_parent() argument 563 switch (attach_point) { in tc_get_tcm_parent() 569 attach_point == BPF_TC_INGRESS ? in tc_get_tcm_parent() 638 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy() 721 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local 733 attach_point = OPTS_GET(hook, attach_point, 0); in bpf_tc_attach() 761 ret = tc_get_tcm_parent(attach_point, &parent); in bpf_tc_attach() 797 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local 807 attach_point = OPTS_GET(hook, attach_point, 0); in __bpf_tc_detach() [all …]
|
H A D | libbpf.h | 1204 enum bpf_tc_attach_point attach_point; member
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xdp_synproxy.c | 35 .attach_point = BPF_TC_INGRESS); in cleanup() 233 .attach_point = BPF_TC_INGRESS); in syncookie_attach()
|