Home
last modified time | relevance | path

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

/external/linux-kselftest/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()
/external/libbpf/src/
Dnetlink.c435 switch (OPTS_GET(hook, attach_point, 0)) { in attach_point_to_config()
450 static int tc_get_tcm_parent(enum bpf_tc_attach_point attach_point, in tc_get_tcm_parent() argument
453 switch (attach_point) { in tc_get_tcm_parent()
459 attach_point == BPF_TC_INGRESS ? in tc_get_tcm_parent()
528 switch (OPTS_GET(hook, attach_point, 0)) { in bpf_tc_hook_destroy()
610 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
622 attach_point = OPTS_GET(hook, attach_point, 0); in bpf_tc_attach()
650 ret = tc_get_tcm_parent(attach_point, &parent); in bpf_tc_attach()
685 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
695 attach_point = OPTS_GET(hook, attach_point, 0); in __bpf_tc_detach()
[all …]
Dlibbpf.h922 enum bpf_tc_attach_point attach_point; member