Whamcloud - gitweb
LU-12611 lnet: continue adding routes 41/35641/2
authorAmir Shehata <ashehata@whamcloud.com>
Mon, 29 Jul 2019 21:53:06 +0000 (14:53 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 Aug 2019 05:00:21 +0000 (05:00 +0000)
Continue adding routes specified even if the current route
exists or the gateway specified in the current route is unreachable.

Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Change-Id: I71257cd444c29d4641d9d27f05d9160871316b02
Reviewed-on: https://review.whamcloud.com/35641
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c

index e9d7463..23612c8 100644 (file)
@@ -1080,7 +1080,7 @@ int lustre_lnet_config_route(char *nw, char *gw, int hops, int prio,
                data.cfg_nid = gateway_nid;
 
                rc = l_ioctl(LNET_DEV_ID, IOC_LIBCFS_ADD_ROUTE, &data);
-               if (rc != 0) {
+               if (rc != 0 && errno != EEXIST && errno != EHOSTUNREACH) {
                        rc = -errno;
                        snprintf(err_str,
                                sizeof(err_str),