Whamcloud - gitweb
LU-7734 lnet: configure local NI from DLC
authorAmir Shehata <amir.shehata@intel.com>
Fri, 29 Jan 2016 01:00:09 +0000 (17:00 -0800)
committerAmir Shehata <amir.shehata@intel.com>
Wed, 25 Jan 2017 03:10:01 +0000 (19:10 -0800)
commit973a1060d35edc39b5ff96022cfed1f300823f88
tree95f34d72db718fa31b8c236df6db0171c5c55794
parent3c62efb37ec2757326eb0c24a78438b32d42bf2e
LU-7734 lnet: configure local NI from DLC

This patch adds the ability to configure multiple network interfaces
on the same network. This can be done via the lnetctl CLI interface
or through a YAML configuration. Refer to the multi-rail HLD for
more details on the syntax.

It also deprecates ip2nets kernel parsing. All string parsing and
network maching now happens in the DLC userspace library.

New IOCTLs are added for adding/deleting local NIs, to keep backwards
compatibility with older version of the DLC and lnetctl.

The changes also include parsing and matching ip2nets syntax at the
user level and then passing down the network interfaces down to the
kernel to be configured.

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: I19ee7dc76514beb6f34de6517d19654d6468bcec
Reviewed-on: http://review.whamcloud.com/18886
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
20 files changed:
libcfs/include/libcfs/libcfs_ioctl.h
libcfs/include/libcfs/libcfs_string.h
libcfs/include/libcfs/util/string.h
libcfs/libcfs/libcfs_string.c
libcfs/libcfs/util/string.c
lnet/include/lnet/lib-dlc.h
lnet/include/lnet/lib-lnet.h
lnet/klnds/socklnd/socklnd.c
lnet/lnet/api-ni.c
lnet/lnet/config.c
lnet/lnet/module.c
lnet/lnet/peer.c
lnet/utils/cyaml/cyaml.c
lnet/utils/cyaml/cyaml.h
lnet/utils/lnetconfig/Makefile.am
lnet/utils/lnetconfig/liblnd.h
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetconfig/liblnetconfig_lnd.c
lnet/utils/lnetctl.c