Searched refs:ifindex_out (Results 1 – 6 of 6) sorted by relevance
/linux-5.19.10/samples/bpf/ |
D | xdp_redirect_user.c | 44 int ifindex_in, ifindex_out, opt; in main() local 92 ifindex_out = if_nametoindex(argv[optind + 1]); in main() 93 if (!ifindex_out) in main() 94 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main() 96 if (!ifindex_in || !ifindex_out) { in main() 117 skel->rodata->to_match[0] = ifindex_out; in main() 118 skel->rodata->ifindex_out = ifindex_out; in main() 140 sample_install_xdp(skel->progs.xdp_redirect_dummy_prog, ifindex_out, in main() 150 if (!if_indextoname(ifindex_out, ifname_out)) { in main() 151 fprintf(stderr, "Failed to if_indextoname for %d: %s\n", ifindex_out, in main() [all …]
|
D | xdp_redirect_map_user.c | 52 int ifindex_in, ifindex_out; in main() local 103 ifindex_out = if_nametoindex(argv[optind + 1]); in main() 104 if (!ifindex_out) in main() 105 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main() 107 if (!ifindex_in || !ifindex_out) { in main() 130 ret = get_mac_addr(ifindex_out, skel->rodata->tx_mac_addr); in main() 133 ifindex_out, strerror(-ret)); in main() 140 skel->rodata->to_match[0] = ifindex_out; in main() 177 sample_install_xdp(skel->progs.xdp_redirect_dummy_prog, ifindex_out, generic, force); in main() 179 devmap_val.ifindex = ifindex_out; in main() [all …]
|
D | xdp_redirect_cpu_user.c | 213 int err, redir_map_fd, ifindex_out, key = 0; in set_cpumap_prog() local 222 ifindex_out = if_nametoindex(redir_interface); in set_cpumap_prog() 223 if (!ifindex_out) in set_cpumap_prog() 224 ifindex_out = strtoul(redir_interface, NULL, 0); in set_cpumap_prog() 225 if (!ifindex_out) { in set_cpumap_prog() 230 err = bpf_map_update_elem(redir_map_fd, &key, &ifindex_out, 0); in set_cpumap_prog() 268 int ifindex_out, err; in set_cpumap_prog() local 274 ifindex_out = if_nametoindex(redir_interface); in set_cpumap_prog() 275 if (!ifindex_out) in set_cpumap_prog() 276 ifindex_out = strtoul(redir_interface, NULL, 0); in set_cpumap_prog() [all …]
|
D | xdp_redirect.bpf.c | 17 const volatile int ifindex_out; variable 39 return bpf_redirect(ifindex_out, 0); in xdp_redirect_prog()
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | test_xdp_do_redirect.c | 7 const volatile int ifindex_out; variable 49 return bpf_redirect(ifindex_out, 0); in xdp_redirect()
|
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_do_redirect.c | 157 skel->rodata->ifindex_out = ifindex_src; /* redirect back to the same iface */ in test_xdp_do_redirect()
|