Whamcloud - gitweb
LU-9121 lnet: foundation patch for selection mod
authorAmir Shehata <ashehata@whamcloud.com>
Tue, 5 Sep 2023 18:13:08 +0000 (02:13 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 6 Oct 2023 23:22:05 +0000 (23:22 +0000)
commitc4931a048655215025a10c9a42327a4eb262eb02
tree606e44cf3b68cc1f5c8d77d20b56fa4f5e22ac52
parentf63cf0ea3879fe6feb04c7badeeddb94c855ab04
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.

Lustre-commit: 51b2c0f75f727f0562b3145015357cbff5cbb3b5
Lustre-change: https://review.whamcloud.com/34350

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-by: Chris Horn <chris.horn@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52288
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/lnet/config.c
lnet/lnet/peer.c