Whamcloud - gitweb
LU-8943 lnd: Enable Multiple OPA Endpoints between Nodes
[fs/lustre-release.git] / lnet / utils / lnetconfig / liblnetconfig.c
index 2313a28..523529b 100644 (file)
@@ -1626,7 +1626,7 @@ int lustre_lnet_show_net(char *nw, int detail, int seq_no,
                        if (interfaces == NULL)
                                goto out;
 
-                       for (j = 0; j < LNET_MAX_INTERFACES; j++) {
+                       for (j = 0; j < LNET_NUM_INTERFACES; j++) {
                                if (strlen(ni_data->lic_ni_intf[j]) > 0) {
                                        snprintf(str_buf,
                                                 sizeof(str_buf), "%d", j);