Whamcloud - gitweb
LU-9121 lnet: foundation patch for selection mod
authorAmir Shehata <ashehata@whamcloud.com>
Fri, 15 Feb 2019 20:45:28 +0000 (12:45 -0800)
committerAmir Shehata <ashehata@whamcloud.com>
Mon, 22 Feb 2021 17:10:56 +0000 (09:10 -0800)
commit51b2c0f75f727f0562b3145015357cbff5cbb3b5
tree0cb6ff436662469c1dead921eabbb9c729771285
parent1fda174739ea9059c2e4963dc24a4808eb5958ac
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