Searched refs:attach_point (Results 1 - 15 of 15) sorted by relevance

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtc_bpf.c72 DECLARE_LIBBPF_OPTS(bpf_tc_hook, inv_hook, .attach_point = BPF_TC_INGRESS);
128 /* hook.attach_point invalid */
129 inv_hook.attach_point = 0xabcd;
131 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_create invalid hook.attach_point"))
135 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_hook_destroy invalid hook.attach_point"))
139 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_attach invalid hook.attach_point"))
143 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_detach invalid hook.attach_point"))
147 if (!ASSERT_EQ(ret, -EINVAL, "bpf_tc_query invalid hook.attach_point"))
150 inv_hook.attach_point = BPF_TC_INGRESS;
152 /* hook.attach_point vali
[all...]
H A Ddecap_sanity.c19 LIBBPF_OPTS(bpf_tc_hook, qdisc_hook, .attach_point = BPF_TC_EGRESS);
H A Dxfrm_info.c85 hook->attach_point = BPF_TC_INGRESS;
94 hook->attach_point = BPF_TC_EGRESS;
294 LIBBPF_OPTS(bpf_tc_hook, tc_hook, .attach_point = BPF_TC_INGRESS);
H A Dtest_tunnel.c380 hook->attach_point = BPF_TC_INGRESS;
389 hook->attach_point = BPF_TC_EGRESS;
411 .attach_point = BPF_TC_INGRESS);
495 .attach_point = BPF_TC_INGRESS);
565 .attach_point = BPF_TC_INGRESS);
630 .attach_point = BPF_TC_INGRESS);
H A Dtcp_custom_syncookie.c52 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS);
H A Dassign_reuse.c86 .attach_point = BPF_TC_INGRESS,
167 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
H A Dbtf_skc_cls_ingress.c26 LIBBPF_OPTS(bpf_tc_hook, qdisc_lo, .attach_point = BPF_TC_INGRESS);
H A Dxdp_do_redirect.c107 .attach_point = BPF_TC_INGRESS);
H A Dvrf_socket_lookup.c107 LIBBPF_OPTS(bpf_tc_hook, hook, .attach_point = BPF_TC_INGRESS);
H A Dtc_links.c555 tc_hook.attach_point = target == BPF_TCX_INGRESS ?
611 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
1609 tc_hook.attach_point = target == BPF_TCX_INGRESS ?
1667 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
1688 .attach_point = BPF_TC_CUSTOM,
1865 tc_hook.attach_point = target == BPF_TCX_INGRESS ?
H A Dtc_redirect.c320 qdisc_hook->attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
339 qdisc_hook->attach_point = xgress;
H A Dtc_opts.c592 tc_hook.attach_point = target == BPF_TCX_INGRESS ?
651 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
2253 tc_hook.attach_point = target == BPF_TCX_INGRESS ?
2262 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
2303 tc_hook.attach_point = target == BPF_TCX_INGRESS ?
2368 tc_hook.attach_point = BPF_TC_INGRESS | BPF_TC_EGRESS;
/linux-master/tools/lib/bpf/
H A Dnetlink.c545 switch (OPTS_GET(hook, attach_point, 0)) {
560 static int tc_get_tcm_parent(enum bpf_tc_attach_point attach_point, argument
563 switch (attach_point) {
569 attach_point == BPF_TC_INGRESS ?
638 switch (OPTS_GET(hook, attach_point, 0)) {
721 int ret, ifindex, attach_point, prog_fd; local
733 attach_point = OPTS_GET(hook, attach_point, 0);
761 ret = tc_get_tcm_parent(attach_point, &parent);
797 int ret, ifindex, attach_point, prog_f local
868 int ret, ifindex, attach_point, prog_fd; local
[all...]
H A Dlibbpf.h1238 enum bpf_tc_attach_point attach_point; member in struct:bpf_tc_hook
/linux-master/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c35 .attach_point = BPF_TC_INGRESS);
233 .attach_point = BPF_TC_INGRESS);

Completed in 181 milliseconds