Whamcloud - gitweb
LU-16801 lnet: Use dynamic allocation for LND tunables 72/50872/2
authorChris Horn <chris.horn@hpe.com>
Fri, 5 May 2023 18:27:00 +0000 (12:27 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 19 May 2023 07:06:25 +0000 (07:06 +0000)
commitfe2e85e5c312a6a10e3410524c7929a4ac6aa738
tree9108f1ea854da12d9f519d7ecf730e0056324508
parent1782884fa247da0c1400ee6307596b64d6aaa440
LU-16801 lnet: Use dynamic allocation for LND tunables

Increasing size of lnet_ioctl_config_lnd_tunables can cause us to
trip Werror=frame-larger-than warning in lnet_net_cmd() and its
call to static function lnet_genl_parse_local_ni() (seen on
ubuntu2004 and ubuntu2204.) Dynamically allocate this memory instead.

Also modify how LND tunables are initialized in
handle_yaml_config_ni() to match what is done in
lnet_genl_parse_local_ni().

Test-Parameters: trivial
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I6d169ac44521e98958feee70fc5ed73ffb8a7fcd
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50872
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c