Home
last modified time | relevance | path

Searched refs:attach_point (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_bpf.c72 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 Dtest_tunnel.c288 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 Dxfrm_info.c85 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 Dassign_reuse.c86 .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 Ddecap_sanity.c18 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS); in test_decap_sanity()
H A Dbtf_skc_cls_ingress.c26 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS); in prepare_netns()
H A Dxdp_do_redirect.c107 .attach_point = BPF_TC_INGRESS); in test_xdp_do_redirect()
H A Dvrf_socket_lookup.c107 LIBBPF_OPTS(bpf_tc_hook, hook, .attach_point = BPF_TC_INGRESS); in attach_progs()
H A Dtc_links.c557 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 Dtc_opts.c592 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 Dtc_redirect.c270 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 Dnetlink.c545 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 Dlibbpf.h1204 enum bpf_tc_attach_point attach_point; member
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c35 .attach_point = BPF_TC_INGRESS); in cleanup()
233 .attach_point = BPF_TC_INGRESS); in syncookie_attach()