Whamcloud - gitweb
LU-10391 lnet: Fix lnetctl peer set --all 91/53791/5
authorChris Horn <chris.horn@hpe.com>
Tue, 23 Jan 2024 21:54:05 +0000 (14:54 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Feb 2024 06:59:15 +0000 (06:59 +0000)
commitf4e23a6549ce7fd18b8f278808bfc4ab9085b8d8
treea79d0656f41cabc96a313214f24a78c2c9bf45d8
parent84fd4d697696659187a182a0f1b8a893997d5f2c
LU-10391 lnet: Fix lnetctl peer set --all

When the --all flag is specified as part of the lnetctl peer set
command,  a primary NID argument is not sent to the peer doit command.
The "peer set" case uses NLM_F_REPLACE flag, so in this case the
primary NID argument is optional.

Added test cases to validate behavior of the lnetctl peer set
command.

Test-Parameters: trivial
Fixes: 8a0fdfa0b2 ("LU-10391 lnet: migrate peer NI control to Netlink")
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I58de030b061280e837de27611bc701a3affab0f3
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53791
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lustre/tests/sanity-lnet.sh