Searched refs:ifindex_dst (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_do_redirect.c | 89 int err, xdp_prog_fd, tc_prog_fd, ifindex_src, ifindex_dst; in test_xdp_do_redirect() local 151 ifindex_dst = if_nametoindex("veth_dst"); in test_xdp_do_redirect() 153 !ASSERT_NEQ(ifindex_dst, 0, "ifindex_dst")) in test_xdp_do_redirect() 167 err = bpf_xdp_query(ifindex_dst, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect() 192 err = bpf_xdp_query(ifindex_dst, XDP_FLAGS_DRV_MODE, &query_opts); in test_xdp_do_redirect() 212 link = bpf_program__attach_xdp(skel->progs.xdp_count_pkts, ifindex_dst); in test_xdp_do_redirect()
|
D | xdp_devmap_attach.c | 160 int err, dm_fd, dm_fd_redir, map_fd, ifindex_dst; in test_xdp_with_devmap_helpers_veth() local 174 ifindex_dst = if_nametoindex("veth_dst"); in test_xdp_with_devmap_helpers_veth() 176 !ASSERT_NEQ(ifindex_dst, 0, "ifindex_dst")) in test_xdp_with_devmap_helpers_veth() 204 err = bpf_xdp_attach(ifindex_dst, dm_fd, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth() 224 err = bpf_xdp_detach(ifindex_dst, XDP_FLAGS_DRV_MODE, NULL); in test_xdp_with_devmap_helpers_veth()
|
D | tc_redirect.c | 138 int ifindex_dst; member 238 result->ifindex_dst = if_nametoindex("dst"); in netns_setup_links_and_routes() 239 if (!ASSERT_GT(result->ifindex_dst, 0, "ifindex_dst")) in netns_setup_links_and_routes() 714 QDISC_CLSACT_CREATE(&qdisc_dst, setup_result->ifindex_dst); in netns_load_dtime_bpf()
|