Whamcloud - gitweb
LU-6060 lnet: set downis to 1 if there's no NI for remote net
[fs/lustre-release.git] / lnet / lnet / router.c
index edfa384..ddd83aa 100644 (file)
@@ -735,6 +735,11 @@ lnet_parse_rc_info(lnet_rc_data_t *rcd)
                        rte->lr_downis = 0;
                        continue;
                }
+               /* if @down is zero and this route is single-hop, it means
+                * we can't find NI for target network */
+               if (down == 0 && rte->lr_hops == 1)
+                       down = 1;
+
                rte->lr_downis = down;
        }
 }