From: Amir Shehata Date: Fri, 7 Jun 2019 18:35:09 +0000 (-0400) Subject: LU-11297 lnet: MR Routing Feature X-Git-Tag: 2.12.55~25 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=1aae733c16161513b07d7f8cc046299e2de5aad3;p=fs%2Flustre-release.git LU-11297 lnet: MR Routing Feature This is a merge commit from the multi-rail branch. It brings in the MR Routing feature. This feature aligns the LNET Multi-Rail behavior with routing. A gateway now is viewed as a Multi-Rail capable node. When a route is added only one entry per gateway should be used. That route entry should use the primary-nid of the gateway. The multi-rail selection algorithm is then run when sending to the gateway to select the best interface to send to. Furthermore the gateway aliveness is now kept via the health mechanism. And the gateway pinger now uses discovery instead of maintaining its own pinger handler. Signed-off-by: Amir Shehata Change-Id: Ie2d8c6449f84860511b322ff2db3ed656a163e74 --- 1aae733c16161513b07d7f8cc046299e2de5aad3 diff --cc lnet/lnet/router_proc.c index 24d9c0f,2c831a7..23ec36e --- a/lnet/lnet/router_proc.c +++ b/lnet/lnet/router_proc.c @@@ -735,8 -689,12 +689,8 @@@ proc_lnet_nis(struct ctl_table *table, int j; if (the_lnet.ln_routing) - last_alive = now - ni->ni_last_alive; + last_alive = now - ni->ni_net->net_last_alive; - /* @lo forever alive */ - if (ni->ni_net->net_lnd->lnd_type == LOLND) - last_alive = 0; - lnet_ni_lock(ni); LASSERT(ni->ni_status != NULL); stat = (ni->ni_status->ns_status ==