Home
last modified time | relevance | path

Searched refs:ifaces (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.15/tools/testing/selftests/bpf/
Dxdp_redirect_multi.c27 static int ifaces[MAX_IFACE_NUM] = {}; variable
34 for (i = 0; ifaces[i] > 0; i++) { in int_exit()
35 if (bpf_get_link_xdp_id(ifaces[i], &prog_id, xdp_flags)) { in int_exit()
40 bpf_set_link_xdp_fd(ifaces[i], -1, xdp_flags); in int_exit()
134 ifaces[i] = if_nametoindex(argv[optind + i]); in main()
135 if (!ifaces[i]) in main()
136 ifaces[i] = strtoul(argv[optind + i], NULL, 0); in main()
137 if (!if_indextoname(ifaces[i], ifname)) { in main()
141 if (ifaces[i] > MAX_INDEX_NUM) { in main()
145 printf(" %d", ifaces[i]); in main()
[all …]
/Linux-v5.15/samples/bpf/
Dxdp_redirect_map_multi_user.c31 static int ifaces[MAX_IFACE_NUM] = {}; variable
57 for (i = 0; ifaces[i] > 0; i++) { in update_mac_map()
58 ifindex = ifaces[i]; in update_mac_map()
149 ifaces[i] = if_nametoindex(argv[optind + i]); in main()
150 if (!ifaces[i]) in main()
151 ifaces[i] = strtoul(argv[optind + i], NULL, 0); in main()
152 if (!if_indextoname(ifaces[i], ifname)) { in main()
158 skel->rodata->from_match[i] = ifaces[i]; in main()
159 skel->rodata->to_match[i] = ifaces[i]; in main()
189 for (i = 0; ifaces[i] > 0; i++) { in main()
[all …]
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/
Dxdp_bonding.c336 static const char * const ifaces[] = {"bond2", "veth2_1", "veth2_2"}; in test_xdp_bonding_redirect_multi() local
349 for (int i = 0; i < ARRAY_SIZE(ifaces); i++) { in test_xdp_bonding_redirect_multi()
350 int ifindex = if_nametoindex(ifaces[i]); in test_xdp_bonding_redirect_multi()
/Linux-v5.15/fs/cifs/
Dsess.c72 struct cifs_server_iface *ifaces = NULL; in cifs_try_adding_channels() local
105 ifaces = kmemdup(ses->iface_list, iface_count*sizeof(*ifaces), in cifs_try_adding_channels()
107 if (!ifaces) { in cifs_try_adding_channels()
128 iface = &ifaces[i]; in cifs_try_adding_channels()
147 kfree(ifaces); in cifs_try_adding_channels()
/Linux-v5.15/Documentation/scsi/
Dcxgb3i.rst63 2. Create an interface file located under /etc/iscsi/ifaces/ for the new