Home
last modified time | relevance | path

Searched refs:ifindex_src (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_do_redirect.c89 int err, xdp_prog_fd, tc_prog_fd, ifindex_src, ifindex_dst; in test_xdp_do_redirect() local
150 ifindex_src = if_nametoindex("veth_src"); in test_xdp_do_redirect()
152 if (!ASSERT_NEQ(ifindex_src, 0, "ifindex_src") || in test_xdp_do_redirect()
157 err = bpf_xdp_query(ifindex_src, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect()
181 err = bpf_xdp_query(ifindex_src, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect()
204 skel->rodata->ifindex_out = ifindex_src; /* redirect back to the same iface */ in test_xdp_do_redirect()
205 skel->rodata->ifindex_in = ifindex_src; in test_xdp_do_redirect()
206 ctx_in.ingress_ifindex = ifindex_src; in test_xdp_do_redirect()
207 tc_hook.ifindex = ifindex_src; in test_xdp_do_redirect()
H A Dtc_redirect.c136 int ifindex_src; member
230 result->ifindex_src = if_nametoindex("src"); in netns_setup_links_and_routes()
231 if (!ASSERT_GT(result->ifindex_src, 0, "ifindex_src")) in netns_setup_links_and_routes()
702 QDISC_CLSACT_CREATE(&qdisc_src, setup_result->ifindex_src); in netns_load_dtime_bpf()