Searched refs:ifindex_dst (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | xdp_do_redirect.c | 99 int err, xdp_prog_fd, tc_prog_fd, ifindex_src, ifindex_dst; in test_xdp_do_redirect() local 161 ifindex_dst = if_nametoindex("veth_dst"); in test_xdp_do_redirect() 163 !ASSERT_NEQ(ifindex_dst, 0, "ifindex_dst")) in test_xdp_do_redirect() 177 err = bpf_xdp_query(ifindex_dst, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect() 202 err = bpf_xdp_query(ifindex_dst, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect() 222 link = bpf_program__attach_xdp(skel->progs.xdp_count_pkts, ifindex_dst); in test_xdp_do_redirect()
|
| H A D | xdp_devmap_attach.c | 184 int err, dm_fd, dm_fd_redir, map_fd, ifindex_dst; in test_xdp_with_devmap_helpers_veth() 198 ifindex_dst = if_nametoindex("veth_dst"); in test_xdp_with_devmap_helpers_veth() 200 !ASSERT_NEQ(ifindex_dst, 0, "ifindex_dst")) in test_xdp_with_devmap_helpers_veth() 228 err = bpf_xdp_attach(ifindex_dst, dm_fd, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth() 248 err = bpf_xdp_detach(ifindex_dst, XDP_FLAGS_DRV_MODE, NULL); 160 int err, dm_fd, dm_fd_redir, map_fd, ifindex_dst; test_xdp_with_devmap_helpers_veth() local
|
| H A D | tc_redirect.c | 140 int ifindex_dst; member 239 result->ifindex_dst = if_nametoindex("dst"); in netns_setup_links_and_routes() 240 if (!ASSERT_GT(result->ifindex_dst, 0, "ifindex_dst")) in netns_setup_links_and_routes() 715 QDISC_CLSACT_CREATE(&qdisc_dst, setup_result->ifindex_dst); in netns_load_dtime_bpf()
|