Whamcloud - gitweb
LU-14555 lnet: asym route inconsistency warning
[fs/lustre-release.git] / lnet / lnet / router.c
index cff9496..8d4d5bd 100644 (file)
@@ -382,8 +382,7 @@ lnet_consolidate_routes_locked(struct lnet_peer *orig_lp,
 static inline void
 lnet_check_route_inconsistency(struct lnet_route *route)
 {
-       if (!route->lr_single_hop &&
-           (route->lr_hops == 1 || route->lr_hops == LNET_UNDEFINED_HOPS) &&
+       if (!route->lr_single_hop && route->lr_hops == 1 &&
            avoid_asym_router_failure) {
                CWARN("route %s->%s is detected to be multi-hop but hop count is set to %d\n",
                        libcfs_net2str(route->lr_net),