Searched refs:ifaces (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/testing/selftests/bpf/
H A Dxdp_redirect_multi.c26 static int ifaces[MAX_IFACE_NUM] = {}; variable
33 for (i = 0; ifaces[i] > 0; i++) {
34 if (bpf_xdp_query_id(ifaces[i], xdp_flags, &prog_id)) {
39 bpf_xdp_detach(ifaces[i], xdp_flags, NULL);
130 ifaces[i] = if_nametoindex(argv[optind + i]);
131 if (!ifaces[i])
132 ifaces[i] = strtoul(argv[optind + i], NULL, 0);
133 if (!if_indextoname(ifaces[i], ifname)) {
137 if (ifaces[i] > MAX_INDEX_NUM) {
141 printf(" %d", ifaces[
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxdp_bonding.c333 static const char * const ifaces[] = {"bond2", "veth2_1", "veth2_2"}; local
346 for (int i = 0; i < ARRAY_SIZE(ifaces); i++) {
347 int ifindex = if_nametoindex(ifaces[i]);

Completed in 124 milliseconds