From: Amir Shehata Date: Wed, 12 Jun 2019 00:58:09 +0000 (-0700) Subject: LU-12427 lnet: warn if discovery is off X-Git-Tag: 2.12.57~129 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=c9718be061924153d8c791b71f204a5b92f149f3 LU-12427 lnet: warn if discovery is off Output a warning if discovery is off and admin is either trying to add a route or enable routing Test-Parameters: trivial Signed-off-by: Amir Shehata Change-Id: Iacd7762c5d19c6e0c45ff6a58693a05761f1336f Reviewed-on: https://review.whamcloud.com/35200 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Olaf Weber Reviewed-by: Chris Horn Reviewed-by: Oleg Drokin --- diff --git a/lnet/lnet/router.c b/lnet/lnet/router.c index 599a8a1..d2c12eb 100644 --- a/lnet/lnet/router.c +++ b/lnet/lnet/router.c @@ -544,6 +544,9 @@ lnet_add_route(__u32 net, __u32 hops, lnet_nid_t gateway, if (add_route) { gw->lp_health_sensitivity = sensitivity; lnet_add_route_to_rnet(rnet2, route); + if (lnet_peer_discovery_disabled) + CWARN("Consider turning discovery on to enable full " + "Multi-Rail routing functionality\n"); } /* @@ -1407,6 +1410,10 @@ lnet_rtrpools_enable(void) ~LNET_PING_FEAT_RTE_DISABLED; lnet_net_unlock(LNET_LOCK_EX); + if (lnet_peer_discovery_disabled) + CWARN("Consider turning discovery on to enable full " + "Multi-Rail routing functionality\n"); + return rc; }