Whamcloud - gitweb
LU-12815 socklnd: allow dynamic setting of conns_per_peer
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 2 Aug 2021 14:48:35 +0000 (10:48 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Dec 2021 04:47:32 +0000 (04:47 +0000)
commit92925fd8b248c78c85c724e40f0129d03da29bc0
treed3c90b01be8cf939a4d9158e895507f29a09b9a2
parent6db8f52ed08abc8ca1604f48839771ed6260536b
LU-12815 socklnd: allow dynamic setting of conns_per_peer

Modify lnetctl and associated code to allow dynamic setting
of conns_per_peer lnd parameter per ni.

The parameter can be set for a specific active nid:
        lnetctl net set --nid 192.168.122.10@tcp --conns-per-peer=4

Or when adding a new net, taking effect on the new nid:
        lnetctl net add --net tcp --if eth0 --conns-per-peer=1

By default, conns_per_peer value specified as the module parameter
shall be used.

Lustre-change: https://review.whamcloud.com/41463
Lustre-commit: a5cbe7883db6d77b82fbd83ad4c662499421d229

LU-15089 tests: allow enough time to create tcp connections

Allow enough time to create tcp connections before counting them
when testing socklnd conns_per_peer setting in sanity-lnet test_230

Lustre-change: https://review.whamcloud.com/45331
Lustre-commit: 5c766b005bf3e0bca0efa9d87ccf230e7cba97cc

LU-14991 tests: Correct whitespace in sanity-lnet test_101/102

sanity-lnet.sh test_100 and test_101 use tab characters in the
expected yaml output, but yaml syntax does not allow tab characters.

Lustre-change: https://review.whamcloud.com/44856
Lustre-commit: 38b18436f220931924210c9019028ea8589adc1d

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I11625b9ad61f0311c294001a38b7855465491aaf
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45741
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
12 files changed:
lnet/include/lnet/lib-lnet.h
lnet/include/uapi/linux/lnet/libcfs_ioctl.h
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd.h
lnet/klnds/socklnd/socklnd_modparams.c
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetconfig/liblnetconfig_lnd.c
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh