From: Liang Zhen Date: Thu, 15 Jan 2015 17:34:24 +0000 (-0800) Subject: LU-6060 lnet: set downis to 1 if there's no NI for remote net X-Git-Tag: 2.6.93~36 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=749dc54622b2c3267c6c97eb770702b437a7897d;ds=sidebyside LU-6060 lnet: set downis to 1 if there's no NI for remote net lnet_route_t::lr_downis is marked as zero even if there is no NI to target network, this is wrong and breaks logic of ARF. This patch fixes this problem. Signed-off-by: Liang Zhen Change-Id: I7831e258d0098e2a4bee650e69bb4f1a12429f46 Reviewed-on: http://review.whamcloud.com/13417 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/router.c b/lnet/lnet/router.c index edfa384..ddd83aa 100644 --- 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; } }