Whamcloud - gitweb
LU-9100 lnet: lctl net down success when lnet not loaded
[fs/lustre-release.git] / lnet / utils / portals.c
index 808f90f..b486569 100644 (file)
@@ -312,6 +312,11 @@ int jt_ptl_network(int argc, char **argv)
                        return 0;
                }
 
+               if (errno == ENODEV) {
+                       printf("LNET is currently not loaded.");
+                       return 0;
+               }
+
                if (errno == EBUSY)
                        fprintf(stderr, "LNET busy\n");
                else