Whamcloud - gitweb
LU-5733 lnet: Use lnet_is_route_alive for router aliveness 55/14055/2
authorChris Horn <hornc@cray.com>
Thu, 12 Mar 2015 22:39:17 +0000 (17:39 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 14 Oct 2015 04:51:15 +0000 (04:51 +0000)
lctl show_route and lctl route_list will output router aliveness
information via lnet_get_route(). lnet_get_route() should use the
lnet_is_route_alive() function, introduced in e8a1124
http://review.whamcloud.com/7857, to determine route aliveness.

Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: Ie57aebeb6b4c80a3b89ed72fc6acbccbbd321be1
Reviewed-on: http://review.whamcloud.com/14055
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/lnet/router.c

index e7eb4c9..1c78c37 100644 (file)
@@ -613,9 +613,7 @@ lnet_get_route(int idx, __u32 *net, __u32 *hops,
                                        *hops     = route->lr_hops;
                                        *priority = route->lr_priority;
                                        *gateway  = route->lr_gateway->lp_nid;
-                                       *alive    =
-                                               route->lr_gateway->lp_alive &&
-                                                       !route->lr_downis;
+                                       *alive    = lnet_is_route_alive(route);
                                        lnet_net_unlock(cpt);
                                        return 0;
                                }