Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e816f235 authored by Liang Zhen's avatar Liang Zhen Committed by Greg Kroah-Hartman
Browse files

staging: lustre: 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: default avatarLiang Zhen <liang.zhen@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6060
Reviewed-on: http://review.whamcloud.com/13417


Reviewed-by: default avatarJames Simmons <uja.ornl@gmail.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4ae51a74
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -718,6 +718,13 @@ 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 && rte->lr_hops == 1)
			down = 1;

		rte->lr_downis = down;
	}
}