Searched refs:ifindex_out (Results 1 – 4 of 4) sorted by relevance
/samples/bpf/ |
D | xdp_redirect_user.c | 45 int ifindex_in, ifindex_out, opt; in main() local 93 ifindex_out = if_nametoindex(argv[optind + 1]); in main() 94 if (!ifindex_out) in main() 95 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main() 97 if (!ifindex_in || !ifindex_out) { in main() 118 skel->rodata->to_match[0] = ifindex_out; in main() 119 skel->rodata->ifindex_out = ifindex_out; in main() 141 sample_install_xdp(skel->progs.xdp_redirect_dummy_prog, ifindex_out, in main() 151 if (!if_indextoname(ifindex_out, ifname_out)) { in main() 152 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 | 214 int err, redir_map_fd, ifindex_out, key = 0; in set_cpumap_prog() local 223 ifindex_out = if_nametoindex(redir_interface); in set_cpumap_prog() 224 if (!ifindex_out) in set_cpumap_prog() 225 ifindex_out = strtoul(redir_interface, NULL, 0); in set_cpumap_prog() 226 if (!ifindex_out) { in set_cpumap_prog() 231 err = bpf_map_update_elem(redir_map_fd, &key, &ifindex_out, 0); in set_cpumap_prog() 269 int ifindex_out, err; in set_cpumap_prog() local 275 ifindex_out = if_nametoindex(redir_interface); in set_cpumap_prog() 276 if (!ifindex_out) in set_cpumap_prog() 277 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()
|