Whamcloud - gitweb
LU-10391 lnet: missing some peer functionality 18/53018/3
authorJames Simmons <jsimmons@infradead.org>
Fri, 10 Nov 2023 14:30:22 +0000 (09:30 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 29 Nov 2023 21:25:08 +0000 (21:25 +0000)
commit774c3d2883c86117e9e2da992843756a5b721064
tree6ca381796c331934e52ef9fc8ae5965c8dbc7978
parentc0973b9fd64036adb3991615e76a97c6aa0b384e
LU-10391 lnet: missing some peer functionality

For peers if we encounter a bad setup in the peer nis
settings for creation we need to cleanup the entire
peer setup.

For the peers API if one of the peer nis is the same as
the primary nid then treat it as tearing down all peer nis
in the peer deletion case.

Change-Id: I57d2a63a9e31860a5ad7587f73f159a9cad2b3c9
Test-Parameters: trivial testlist=sanity-lnet
Fixes: 8a0fdfa0b28 ("LU-10391 lnet: migrate peer NI control to Netlink")
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53018
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c
lustre/tests/sanity-lnet.sh