Whamcloud - gitweb
LU-7734 lnet: fix routing selection
authorAmir Shehata <amir.shehata@intel.com>
Thu, 14 Jul 2016 23:50:07 +0000 (16:50 -0700)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:17 +0000 (19:10 -0800)
commit76adbed805e71995d521d1a26e1e3d93f3dfd7b7
tree159998e0f4b3bfae27e228aad9ebecc508f9b426
parente6f4713001966bdf7b80a7839c4366d38fa31624
LU-7734 lnet: fix routing selection

Always prefer locally connected networks over routed networks.
If there are multiple routed networks and no connected networks
pick the best gateway to use. If all gateways are equal then
round robin through them.

Renamed dev_cpt to ni_dev_cpt to maintain naming convention.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: Ie6a3aaa7a9ec4f5474baf5e1ec0258d481418cb1
Reviewed-on: http://review.whamcloud.com/21326
lnet/include/lnet/lib-types.h
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/socklnd/socklnd.c
lnet/lnet/api-ni.c
lnet/lnet/lib-move.c