Whamcloud - gitweb
LU-9667 lnet: Add new structs for sysfs LND APIs
authorSonia Sharma <sonia.sharma@intel.com>
Thu, 7 Jun 2018 04:00:31 +0000 (21:00 -0700)
committerSonia Sharma <sharmaso@whamcloud.com>
Thu, 30 May 2019 02:34:03 +0000 (22:34 -0400)
commitb955816ff37c4b27644b0ead265cb8ceb0a53d45
treec33d2f229accaab848db56449807accf4bf14afb
parent4ca0f9424a202bc089f7f56b72fcc3d80184c9da
LU-9667 lnet: Add new structs for sysfs LND APIs

Adding new generic LND peer and conn structure.
These structs will be used by the sysfs APIs to
create LND sysfs structure.

Create lnd kobject and lnd peers kset in
lnet_register_lnd() and change its return type
to int to take care of error handling.

With this patch, ko2iblnd_tunables_init() and
ksocklnd_tunables_init() are changed to have
return type as void since both these functions
always return 0.

Change-Id: Ibeb9a7d2fcc9c7b12a733cf783fd57537de952c4
Test-Parameters: forbuildonly
Signed-off-by: Sonia Sharma <sonia.sharma@intel.com>
Reviewed-on: https://review.whamcloud.com/32664
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Sonia Sharma <sharmaso@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/include/lnet/lnet-sysfs.h
lnet/klnds/gnilnd/gnilnd.c
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/o2iblnd/o2iblnd.h
lnet/klnds/o2iblnd/o2iblnd_modparams.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd.h
lnet/klnds/socklnd/socklnd_modparams.c
lnet/lnet/api-ni.c