Whamcloud - gitweb
LU-9480 lnet: add "lnetctl discover" 93/25793/29
authorSonia Sharma <sonia.sharma@intel.com>
Mon, 13 Feb 2017 20:40:19 +0000 (12:40 -0800)
committerAmir Shehata <amir.shehata@intel.com>
Tue, 22 Aug 2017 16:28:12 +0000 (16:28 +0000)
commit02de152aeb458c55c017f3167cd1c9bab4282586
tree5ba024d7ff9f1e98c053fb45bf95fc0c104cd395
parent7c99c092664baa1c325ff3e13c43bdb6945d963d
LU-9480 lnet: add "lnetctl discover"

Add a "discover" subcommand to lnetctl

jt_discover() in lnetctl.c calls lustre_lnet_discover_nid()
to implement "lnetctl discover". The output is similar to
"lnetctl ping" command.
This patch also does some clean up in linlnetconfig.c
For parameters under global settings, the common code
for them is pulled in funtions ioctl_set_value() and
ioctl_show_global_values().

Test-Parameters: trivial
Signed-off-by: Sonia Sharma <sonia.sharma@intel.com>
Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: I98ebb0b27de4b32ea07421f7dd71a4a1c96f3e05
Reviewed-on: https://review.whamcloud.com/25793
lnet/include/uapi/linux/lnet/libcfs_ioctl.h
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c