From 4e0246c6dc15b5035a4bd875902eedaf42f63cdd Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Mon, 29 Jul 2019 14:53:06 -0700 Subject: [PATCH] LU-12611 lnet: continue adding routes 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 Change-Id: I71257cd444c29d4641d9d27f05d9160871316b02 Reviewed-on: https://review.whamcloud.com/35641 Tested-by: jenkins Reviewed-by: Chris Horn Tested-by: Maloo Reviewed-by: Alexandr Boyko Reviewed-by: Oleg Drokin --- lnet/utils/lnetconfig/liblnetconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/utils/lnetconfig/liblnetconfig.c b/lnet/utils/lnetconfig/liblnetconfig.c index e9d7463..23612c8 100644 --- a/lnet/utils/lnetconfig/liblnetconfig.c +++ b/lnet/utils/lnetconfig/liblnetconfig.c @@ -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), -- 1.8.3.1