From 47520731dd9c4abc44c624515e1975b49a2c37a9 Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Sun, 19 Jul 2020 10:34:44 -0500 Subject: [PATCH] LU-13836 lnet: Display correct route aliveness jt_ptl_print_routes() needs to be updated to interpret data.cfg_config_u.cfg_route.rtr_flags correctly. Test-Parameters: trivial Fixes: 2832478194 ("LU-13029 lnet: fix asym routing with multi-hop") HPE-bug-id: LUS-9121 Signed-off-by: Chris Horn Change-Id: I796759293c6b25794f2092c06fee2981db6a7d48 Reviewed-on: https://review.whamcloud.com/39543 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Serguei Smirnov Reviewed-by: Neil Brown Reviewed-by: Oleg Drokin --- lustre/utils/portals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/utils/portals.c b/lustre/utils/portals.c index e859609..4349577 100644 --- a/lustre/utils/portals.c +++ b/lustre/utils/portals.c @@ -1222,7 +1222,7 @@ jt_ptl_print_routes(int argc, char **argv) net = data.cfg_net; hops = data.cfg_config_u.cfg_route.rtr_hop; nid = data.cfg_nid; - alive = data.cfg_config_u.cfg_route.rtr_flags; + alive = data.cfg_config_u.cfg_route.rtr_flags & LNET_RT_ALIVE; pri = data.cfg_config_u.cfg_route.rtr_priority; printf("net %18s hops %u gw %32s %s pri %u\n", -- 1.8.3.1