Whamcloud - gitweb
LU-6045 lnet: return appropriate errno when adding route
[fs/lustre-release.git] / lnet / lnet / config.c
index c5f7e96..dd1e2d0 100644 (file)
@@ -792,7 +792,7 @@ lnet_parse_route (char *str, int *im_a_router)
                        }
 
                        rc = lnet_add_route(net, hops, nid, priority);
-                       if (rc != 0) {
+                       if (rc != 0 && rc != -EEXIST && rc != -EHOSTUNREACH) {
                                CERROR("Can't create route "
                                       "to %s via %s\n",
                                       libcfs_net2str(net),