Searched refs:ifindex_out (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.4/samples/bpf/ |
| D | xdp_redirect_map_user.c | 23 static int ifindex_out; variable 48 if (bpf_get_link_xdp_id(ifindex_out, &curr_prog_id, in int_exit() 54 bpf_set_link_xdp_fd(ifindex_out, -1, xdp_flags); in int_exit() 144 ifindex_out = if_nametoindex(argv[optind + 1]); in main() 145 if (!ifindex_out) in main() 146 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main() 148 printf("input: %d output: %d\n", ifindex_in, ifindex_out); in main() 191 if (bpf_set_link_xdp_fd(ifindex_out, dummy_prog_fd, in main() 193 printf("WARN: link set xdp fd failed on %d\n", ifindex_out); in main() 209 ret = bpf_map_update_elem(tx_port_map_fd, &key, &ifindex_out, 0); in main() [all …]
|
| D | xdp_redirect_user.c | 23 static int ifindex_out; variable 48 if (bpf_get_link_xdp_id(ifindex_out, &curr_prog_id, in int_exit() 54 bpf_set_link_xdp_fd(ifindex_out, -1, xdp_flags); in int_exit() 145 ifindex_out = if_nametoindex(argv[optind + 1]); in main() 146 if (!ifindex_out) in main() 147 ifindex_out = strtoul(argv[optind + 1], NULL, 0); in main() 149 printf("input: %d output: %d\n", ifindex_in, ifindex_out); in main() 192 if (bpf_set_link_xdp_fd(ifindex_out, dummy_prog_fd, in main() 194 printf("WARN: link set xdp fd failed on %d\n", ifindex_out); in main() 210 ret = bpf_map_update_elem(tx_port_map_fd, &key, &ifindex_out, 0); in main() [all …]
|