From c9718be061924153d8c791b71f204a5b92f149f3 Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Tue, 11 Jun 2019 17:58:09 -0700 Subject: [PATCH] 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 --- lnet/lnet/router.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 1.8.3.1