Whamcloud - gitweb
LU-13642 lnet: Allow IP specification 60/47660/24
authorFrank Sehr <fsehr@whamcloud.com>
Thu, 16 Jun 2022 18:40:06 +0000 (11:40 -0700)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jan 2023 07:53:43 +0000 (07:53 +0000)
commit14cdcd61985aa02097791ff7a8173c2e62030697
treea923fa213ed0fad447370496eae3240fb650bc72
parent18b4e28f18d55291f8a14a3bd9ee84b1a686a93e
LU-13642 lnet: Allow IP specification

Allows selecting an interface by specifying an IP address in the NID.
All variations of interface and IP address are considered.

1 no interface and no IP address is specified: Select first interface
2 interface and no IP: Select main IP address
3 no interface and IP specified: Select first interface
        that has the IP address
4 interface and IP specified: Verify that interface and IP match

The change does not have any effect on current configurations and
will be active when the changes in lnetctl, YAML or
module parameter are applied.
This patch effects only socklnd component. A macro is defined in
lnet-types.h to check if an IP address is set (IPV4 or IPV6).
Further IPV6 changes are not integrated.

For further reference please read

IP specification in LNet
https://wiki.whamcloud.com/display/LNet/IP+specification+in+LNet

Test-Parameters: trivial
Signed-off-by: Frank Sehr <fsehr@whamcloud.com>
Change-Id: Ifdf8f884ce1ee1fb1b97ca3121aa83efb46f8ef0
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/47660
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/uapi/linux/lnet/lnet-types.h
lnet/klnds/socklnd/socklnd.c
lnet/lnet/config.c