Whamcloud - gitweb
LU-9680 lnet: add NLM_F_DUMP_FILTERED support 04/53004/15
authorJames Simmons <jsimmons@infradead.org>
Wed, 28 Feb 2024 19:34:38 +0000 (14:34 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 13 Mar 2024 03:21:32 +0000 (03:21 +0000)
commitd3ef8f699343db2578996a3f45625cc2daf603fa
treeddd9b14158d0eea66e56a165e5c99feadfc6cb81
parent1546a179a21196663d76dc428c5d3650a4819e5e
LU-9680 lnet: add NLM_F_DUMP_FILTERED support

In addition to different API levels for the netlink packets we
can also filter the data sent back when user land sends the
NLM_F_DUMP_FILTERED. Support this across the various netlink
dumpit functions.

This work is needed for the proper support for lnetctl export
command. Update the export to work with the Netlink API. This
results in proper IPv6 support for the export command.

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: I0e8993b1f9a08199f282965601781aa6fd0e4844
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53004
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/linux/linux-net.h
lnet/lnet/api-ni.c
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh