Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-6060 lnet: set downis to 1 if there's no NI for remote net
[fs/lustre-release.git]
/
lnet
/
lnet
/
router.c
diff --git
a/lnet/lnet/router.c
b/lnet/lnet/router.c
index
edfa384
..
ddd83aa
100644
(file)
--- a/
lnet/lnet/router.c
+++ b/
lnet/lnet/router.c
@@
-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;
}
}