Whamcloud - gitweb
LU-11297 lnet: handle router health off
[fs/lustre-release.git] / lnet / lnet / config.c
index bcd780d..75e6e39 100644 (file)
@@ -459,6 +459,7 @@ lnet_ni_alloc_common(struct lnet_net *net, char *iface)
        spin_lock_init(&ni->ni_lock);
        INIT_LIST_HEAD(&ni->ni_netlist);
        INIT_LIST_HEAD(&ni->ni_recovery);
+       LNetInvalidateMDHandle(&ni->ni_ping_mdh);
        ni->ni_refs = cfs_percpt_alloc(lnet_cpt_table(),
                                       sizeof(*ni->ni_refs[0]));
        if (ni->ni_refs == NULL)
@@ -1245,7 +1246,7 @@ lnet_parse_route (char *str, int *im_a_router)
                                continue;
                        }
 
-                       rc = lnet_add_route(net, hops, nid, priority);
+                       rc = lnet_add_route(net, hops, nid, priority, 1);
                        if (rc != 0 && rc != -EEXIST && rc != -EHOSTUNREACH) {
                                CERROR("Can't create route "
                                       "to %s via %s\n",