From: Chris Horn Date: Sun, 19 Jul 2020 15:34:44 +0000 (-0500) Subject: LU-13836 lnet: Display correct route aliveness X-Git-Tag: 2.13.56~83 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=47520731dd9c4abc44c624515e1975b49a2c37a9 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 --- 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",