Whamcloud - gitweb
LU-9121 lnet: foundation patch for selection mod 85/40185/1
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 15 Feb 2019 20:45:28 +0000 (12:45 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Thu, 8 Oct 2020 20:43:30 +0000 (13:43 -0700)
commita30e9aaa52e02c7e945f87be47d7bfdf28695592
tree86dd468e3589890d8b1c74caeefa3cd5f795ab77
parent54e7cd8949774f469873412bf783513835717ae8
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