Whamcloud - gitweb
LU-10391 lnet: support updating LNet local NI settings 60/53560/12
authorJames Simmons <jsimmons@infradead.org>
Sat, 24 Feb 2024 15:15:35 +0000 (10:15 -0500)
committerOleg Drokin <green@whamcloud.com>
Mon, 4 Mar 2024 19:57:30 +0000 (19:57 +0000)
commit9b05e872482e380155f6151e3a966b1ec0d08041
tree052a23e6b022f47c75fe139482508d8023479d8e
parent94d02e5774cc0d9ca5c3c34d21c2698ab89f3a6d
LU-10391 lnet: support updating LNet local NI settings

The LNet API allows updating specific settings instead of a full new
configuration for NIs. We can accomplish this using NLM_F_REPLACE with
the LNET_CMD_NETS command. The only change for the user land tools is
now you can use large NID addresses.

Another change in the user land tools is increasing intf_name field
in size from IFNAMSIZ to LNET_MAX_STR_LEN which requires increasing
err_str handling. This is because we use struct lnet_dlc_intf_descr
both to store network addresses or / and network interfaces.

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: Id334ed3a73ac6ec7a342d4616e32dcfef46907a7
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53560
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/socklnd/socklnd.c
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c