Whamcloud - gitweb
LU-10391 lnet: update Netlink commands functionality 03/53003/15
authorJames Simmons <jsimmons@infradead.org>
Sat, 23 Mar 2024 14:40:46 +0000 (08:40 -0600)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2024 15:35:31 +0000 (15:35 +0000)
commit56af81e1aac0ec1f924249db061514d93912482d
tree23d886d2fcc2adaf74a586476af4f0e278e533dd
parent7151881aa3b5be6cbefc731b59ecb51fda961891
LU-10391 lnet: update Netlink commands functionality

Update jt_import() for the lnetctl import command to support
all the new Netlink API.

Fix a sending message bug that was due to  multiple calls
to genl_ctrl_resolve_grp() and genl_ctrl_resolve(). We
were using the special netlink socket for these calls.
That special socket has its own callbacks which don't
work with the libnl functions we are calling. Fix this
by creating an internal generic netlink socket for use
with the libnl functions.

Test-Parameters: trivial testlist=sanity-lnet
Change-Id: I1d360cc0375bc56a05ca47d58d8319a0ded0ccf9
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53003
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: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetconfig/liblnetconfig_netlink.c
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh