Searched refs:ifindex_in (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/samples/bpf/ |
D | xdp_redirect_user.c | 44 int ifindex_in, ifindex_out, opt; in main() local 88 ifindex_in = if_nametoindex(argv[optind]); in main() 89 if (!ifindex_in) in main() 90 ifindex_in = strtoul(argv[optind], NULL, 0); in main() 96 if (!ifindex_in || !ifindex_out) { in main() 116 skel->rodata->from_match[0] = ifindex_in; in main() 135 if (sample_install_xdp(skel->progs.xdp_redirect_prog, ifindex_in, in main() 144 if (!if_indextoname(ifindex_in, ifname_in)) { in main() 145 fprintf(stderr, "Failed to if_indextoname for %d: %s\n", ifindex_in, in main() 156 safe_strncpy(str, get_driver_name(ifindex_in), sizeof(str)); in main() [all …]
|
D | xdp_redirect_map_user.c | 54 int ifindex_in, ifindex_out; in main() local 102 ifindex_in = if_nametoindex(argv[optind]); in main() 103 if (!ifindex_in) in main() 104 ifindex_in = strtoul(argv[optind], NULL, 0); in main() 110 if (!ifindex_in || !ifindex_out) { in main() 148 skel->rodata->from_match[0] = ifindex_in; in main() 169 if (sample_install_xdp(prog, ifindex_in, generic, force) < 0) { in main() 200 if (!if_indextoname(ifindex_in, ifname_in)) { in main() 201 fprintf(stderr, "Failed to if_indextoname for %d: %s\n", ifindex_in, in main() 212 safe_strncpy(str, get_driver_name(ifindex_in), sizeof(str)); in main() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_xdp_do_redirect.c | 8 const volatile int ifindex_in; variable 28 if (xdp->ingress_ifindex != ifindex_in) in xdp_redirect()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_do_redirect.c | 158 skel->rodata->ifindex_in = ifindex_src; in serial_test_xdp_do_redirect()
|