Whamcloud - gitweb
LU-14939 lnet: Allow specifying a source NID for lnetctl ping
authorChris Horn <chris.horn@hpe.com>
Thu, 12 Aug 2021 16:26:07 +0000 (11:26 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 26 Aug 2022 16:30:35 +0000 (16:30 +0000)
commit7262c23ee7c9d38a91a7ec3d45605bf3c25a9a20
tree3acf0472681ccf65fe8b3cfc5f6c78ac64b04baf
parent2a4721ee5a012d6d01cf47ffc687784541e9026d
LU-14939 lnet: Allow specifying a source NID for lnetctl ping

Add a new --source option for lnetctl ping command. This allows the
user to specify a local NI from which to send the ping. This also
ensures that the specified destination NID is also used. Otherwise,
pings to multi-rail peers may end up going to a different peer NI
based on the multi-rail selection algorithm. The ability to specify
a source NI, and thus fix the destination NI, is a great help in
troubleshooting communication issues between multi-rail peers.

Add test to exercise lnetctl ping --source option.

Lustre-change: https://review.whamcloud.com/44727
Lustre-commit: 48ef9982c474a02c460293bce17c9e45f9829eab

HPE-bug-id: LUS-10296
Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I454217b30a92414de537880f076a11a693b1f0b3
Reviewed-on: https://review.whamcloud.com/48297
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/uapi/linux/lnet/lnet-dlc.h
lnet/lnet/api-ni.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c
lustre/tests/sanity-lnet.sh