Whamcloud - gitweb
LU-11297 lnet: MR Routing Feature 83/34983/3
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 7 Jun 2019 18:35:09 +0000 (14:35 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 7 Jun 2019 18:38:06 +0000 (14:38 -0400)
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 <ashehata@whamcloud.com>
Change-Id: Ie2d8c6449f84860511b322ff2db3ed656a163e74

1  2 
lnet/include/lnet/lib-lnet.h
lnet/klnds/socklnd/socklnd.c
lnet/lnet/router_proc.c
lustre/tests/sanity.sh

Simple merge
Simple merge
@@@ -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 ==
Simple merge