Whamcloud - gitweb
LU-11763 lnet: Change "lctl network configure" to always take net device info lnet-sysfs
authorSonia Sharma <sharmaso@whamcloud.com>
Fri, 26 Oct 2018 14:08:06 +0000 (10:08 -0400)
committerSonia Sharma <sharmaso@whamcloud.com>
Thu, 30 May 2019 02:34:04 +0000 (22:34 -0400)
commit724fe0e0e3faa18d2c3a532de3aaf603b3e896c0
tree38c044fa2a1a4cfb1f547a594bc66eeb4170b816
parent62dcf2c4550f859fa6f63c8a543d7bc0f1268aaf
LU-11763 lnet: Change "lctl network configure" to always take net device info

Currently, if the network interface is not specified
in the lustre.conf file, then the "lctl network configure"
command configures network at LND level using default
interface values for socklnd and o2iblnd.

With this patch, lnet_get_networks() is modified such
that if the network device info is not provided, then
it will get the first available network interface,
say "intf" and pass "tcp(intf)" to lnet_parse_networks().
If no network device is found, then it will pass NULL.

Test-Parameters: trivial
Change-Id: I3e3d8fac5f9837330d8787f36826ef9b2b4ea93e
Signed-off-by: Sonia Sharma <sharmaso@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34764
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
lnet/lnet/api-ni.c
lustre/ptlrpc/events.c
lustre/utils/portals.c