Whamcloud - gitweb
LU-10153 lnet: remove route add restriction
[fs/lustre-release.git] / lnet / lnet / api-ni.c
index 3695d9f..99ccfd7 100644 (file)
@@ -2575,10 +2575,6 @@ LNetNIInit(lnet_pid_t requested_pid)
                if (rc != 0)
                        goto err_shutdown_lndnis;
 
-               rc = lnet_check_routes();
-               if (rc != 0)
-                       goto err_destroy_routes;
-
                rc = lnet_rtrpools_alloc(im_a_router);
                if (rc != 0)
                        goto err_destroy_routes;
@@ -3527,12 +3523,6 @@ LNetCtl(unsigned int cmd, void *arg)
                                    config->cfg_nid,
                                    config->cfg_config_u.cfg_route.
                                        rtr_priority);
-               if (rc == 0) {
-                       rc = lnet_check_routes();
-                       if (rc != 0)
-                               lnet_del_route(config->cfg_net,
-                                              config->cfg_nid);
-               }
                mutex_unlock(&the_lnet.ln_api_mutex);
                return rc;