Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dtc_bpf.c71 DECLARE_LIBBPF_OPTS(bpf_tc_hook, inv_hook, .attach_point = BPF_TC_INGRESS); in test_tc_bpf_api()
128 inv_hook.attach_point = 0xabcd; in test_tc_bpf_api()
149 inv_hook.attach_point = BPF_TC_INGRESS; in test_tc_bpf_api()
173 inv_hook.attach_point = BPF_TC_CUSTOM; in test_tc_bpf_api()
198 inv_hook.attach_point = BPF_TC_INGRESS; in test_tc_bpf_api()
333 .attach_point = BPF_TC_INGRESS); in test_tc_bpf()
352 hook.attach_point = BPF_TC_CUSTOM; in test_tc_bpf()
366 hook.attach_point = BPF_TC_INGRESS; in test_tc_bpf()
376 hook.attach_point = BPF_TC_EGRESS; in test_tc_bpf()
391 hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS; in test_tc_bpf()
Dtest_tunnel.c227 hook->attach_point = BPF_TC_INGRESS; in attach_tc_prog()
236 hook->attach_point = BPF_TC_EGRESS; in attach_tc_prog()
258 .attach_point = BPF_TC_INGRESS); in test_vxlan_tunnel()
342 .attach_point = BPF_TC_INGRESS); in test_ip6vxlan_tunnel()
Dxdp_do_redirect.c108 .attach_point = BPF_TC_INGRESS); in test_xdp_do_redirect()
/Linux-v6.1/tools/lib/bpf/
Dnetlink.c438 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config()
453 static int tc_get_tcm_parent(enum bpf_tc_attach_point attach_point, in tc_get_tcm_parent() argument
456 switch (attach_point) { in tc_get_tcm_parent()
462 attach_point == BPF_TC_INGRESS ? in tc_get_tcm_parent()
531 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy()
614 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
626 attach_point = OPTS_GET(hook, attach_point, 0); in bpf_tc_attach()
654 ret = tc_get_tcm_parent(attach_point, &parent); in bpf_tc_attach()
689 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
699 attach_point = OPTS_GET(hook, attach_point, 0); in __bpf_tc_detach()
[all …]
Dlibbpf.h988 enum bpf_tc_attach_point attach_point; member
/Linux-v6.1/tools/testing/selftests/bpf/
Dxdp_synproxy.c35 .attach_point = BPF_TC_INGRESS); in cleanup()
230 .attach_point = BPF_TC_INGRESS); in syncookie_attach()