Whamcloud - gitweb
LU-10391 lnet: use lnet_ni_get_status_locked for lnet_net_show_dump 16/53016/2
authorJames Simmons <jsimmons@infradead.org>
Tue, 7 Nov 2023 15:57:46 +0000 (10:57 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 18 Nov 2023 21:42:14 +0000 (21:42 +0000)
commitf3237a16e367e13eb8d29bab66903757ba8fdd62
tree5f685d5052e8d4c3942f2a6f2a253e02c89267f9
parentaa2fa25325edfb6ee03ee343a46cfc2acfd68b42
LU-10391 lnet: use lnet_ni_get_status_locked for lnet_net_show_dump

In my testing of IPv6 I was always seeing the NI state as "down".
This is incorrect and I found this was due to reading ni->ni_status
directly. Using lnet_ni_get_status_locked() fixes the issue.

Test-Parameters: trivial testlist=sanity-lnet
Fixes: 8f8f6e2f36e ("LU-10003 lnet: use Netlink to support old and new NI APIs.")
Change-Id: I490144ceae4a5c1cdd7c920661f8220033df8cd5
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53016
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/api-ni.c