Whamcloud - gitweb
LU-16197 kfilnd: Convert NID num to host order 00/48700/2
authorChris Horn <chris.horn@hpe.com>
Mon, 26 Sep 2022 18:59:38 +0000 (12:59 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Oct 2022 05:39:10 +0000 (05:39 +0000)
commit83ea3c452e17f62603acbb57b0fd729211d1e8c2
treedf7024f423c6829cc736c12ba930018d28c7ca46
parentda893c6c9707ca3b2e7532d05f754fccf1cffc74
LU-16197 kfilnd: Convert NID num to host order

The nid_num field in struct lnet_nid is stored in network byte order.
The nid_num field is used to generate the kfabric service string. The
underlying kfabric providers expect the service string to be in host
byte order not network byte order. This mismatch is preventing
multiple LNet NID indexes from being used.

Fix this by converting nid_num to host byte order.

Test-Parameters: trivial
HPE-bug-id: LUS-11254
Change-Id: I804daa6d66d775212a83e3ed013310b383b94974
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48700
Reviewed-by: Ron Gredvig <ron.gredvig@hpe.com>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lnet/klnds/kfilnd/kfilnd_dom.c
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh