Whamcloud - gitweb
LU-9121 lnet: foundation patch for selection mod 50/34350/44
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 15 Feb 2019 20:45:28 +0000 (12:45 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Wed, 17 Jun 2020 20:28:40 +0000 (20:28 +0000)
commite9268fcea2ddb88bc8447c0985fbe9589d71138a
treebc0272e37834084bbd89f013663cb8a53fd8c3bf
parent79391254fb162acfb89df7cb0f0ceaddc9e25f09
LU-9121 lnet: foundation patch for selection mod

Add the priority and preferred NIDs fields in the lnet_ni,
lnet_net, lnet_peer_net and lnet_peer_ni. Switched
the implementation of the preferred NIDs list to list_head
instead of array, because the code is more straight forward.
There is more memory overhead due to list_head, but these lists
are expected to be small, so I chose code simplicity over memory.

Test-Parameters: trivial testlist=lnet-selftest,sanity-lnet
Signed-off-by: Amir Shehata <ashehata@whamcloud.com>
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I0c75855b736345c25e1604083eee2b65d38ef28d
Reviewed-on: https://review.whamcloud.com/34350
Reviewed-by: Chris Horn <chris.horn@hpe.com>
lnet/include/lnet/lib-types.h
lnet/lnet/config.c
lnet/lnet/peer.c