From 749dc54622b2c3267c6c97eb770702b437a7897d Mon Sep 17 00:00:00 2001 From: Liang Zhen Date: Thu, 15 Jan 2015 09:34:24 -0800 Subject: [PATCH] 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 --- lnet/lnet/router.c | 5 +++++ 1 file changed, 5 insertions(+) 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; } } -- 1.8.3.1