Whamcloud - gitweb
LU-12427 lnet: warn if discovery is off 00/35200/5
authorAmir Shehata <ashehata@whamcloud.com>
Wed, 12 Jun 2019 00:58:09 +0000 (17:58 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 20 Jul 2019 18:38:26 +0000 (18:38 +0000)
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 <ashehata@whamcloud.com>
Change-Id: Iacd7762c5d19c6e0c45ff6a58693a05761f1336f
Reviewed-on: https://review.whamcloud.com/35200
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/router.c

index 599a8a1..d2c12eb 100644 (file)
@@ -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;
 }