Whamcloud - gitweb
LU-16822 lnet: always initialize IPv6 at start up 18/51818/6
authorJames Simmons <jsimmons@infradead.org>
Mon, 22 Apr 2024 14:08:11 +0000 (10:08 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 30 Apr 2024 06:45:45 +0000 (06:45 +0000)
commitab6c8bd18e1441f803a6b090a555eb30b1c527b7
tree3342d3ca7ca069b92a991ecb9591dbdf08c8f43e
parent2333c8e3ae934ba5b6c11c571e507775ecc417c6
LU-16822 lnet: always initialize IPv6 at start up

Currently lnet_inet_enumerate() has a bool parameter that enables
collecting IPv6 addresses for selection which is optional. This
patch changes the behavior to always collect proper IPv6 addresses
and now the bool flag means prefer the IPv6 over any IPv4 addresses.
Update the user land applications lctl and lnetctl to send a flag
to select IPv6 or IPv4 at initialization of the LNet stack. This
is useful for IPv6 and other large NID type testing.

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: Ib3f38de15b1295ec1f8e8607dbd971583541f06c
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51818
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/klnds/socklnd/socklnd.c
lnet/lnet/api-ni.c
lnet/lnet/config.c
lnet/lnet/lib-socket.c
lnet/utils/lnetctl.c
lustre/utils/portals.c