From: Gian-Carlo DeFazio Date: Wed, 23 Mar 2022 23:25:56 +0000 (-0700) Subject: LU-14555 lnet: asym route inconsistency warning X-Git-Tag: 2.15.51~60 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=6ab060e58e6b3f38b0c8d57b56fec887c6fe9fb6;ds=sidebyside LU-14555 lnet: asym route inconsistency warning lnet_check_route_inconsistency() checks for inconsistency between the lr_hops and lr_single_hop values of a route. A warning is currently emitted if the route is not single hop and the hop count is either 1 or LNET_UNDEFINED_HOPS. To emit the warning, add the requirement that avoid_asym_router_failure is enabled. Test-Parameters: trivial Signed-off-by: Gian-Carlo DeFazio Change-Id: Iaa26d25492e49b569ae5e81da9f00f162be3da59 Reviewed-on: https://review.whamcloud.com/46918 Reviewed-by: Olaf Faaland-LLNL Tested-by: jenkins Tested-by: Maloo Reviewed-by: Serguei Smirnov Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/router.c b/lnet/lnet/router.c index d581fa2..28b64ff 100644 --- a/lnet/lnet/router.c +++ b/lnet/lnet/router.c @@ -382,7 +382,8 @@ static inline void lnet_check_route_inconsistency(struct lnet_route *route) { if (!route->lr_single_hop && - (route->lr_hops == 1 || route->lr_hops == LNET_UNDEFINED_HOPS)) { + (route->lr_hops == 1 || route->lr_hops == LNET_UNDEFINED_HOPS) && + avoid_asym_router_failure) { CWARN("route %s->%s is detected to be multi-hop but hop count is set to %d\n", libcfs_net2str(route->lr_net), libcfs_nidstr(&route->lr_gateway->lp_primary_nid),