Whamcloud - gitweb
LU-10391 lnet: allow ping packet to contain large nids 28/44628/20
authorMr NeilBrown <neilb@suse.de>
Thu, 27 Oct 2022 13:58:02 +0000 (09:58 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Nov 2022 08:50:14 +0000 (08:50 +0000)
commitdb0fb8f2b649c0c389a6915f1bbd49b36bfec4b9
tree94dea271e9b23eff75935b2e7726c79c1d6461f1
parent5243630b09d22e0b576d81390d604774881f63f7
LU-10391 lnet: allow ping packet to contain large nids

The ping packet has an array of fixed-size status entries that only
have room for a 4-byte-address nid.

This patches adds a feature flag which activates a list of variable
sized entries after the initial array.

Each entry contains a 4-byte status and then a nid, rounded to a
multiple of 4 bytes.  The total number of bytes of the ping_info
(header, first array, subsequent list) is stored in the ns_unused
field of the first entry in the array.

The user-space interfaces only see the initial array.

Test-Parameters: trivial testlist=sanity-lnet
Test-Parameters: serverversion=2.12 serverdistro=el7.9 testlist=runtests
Test-Parameters: clientversion=2.12 testlist=runtests
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I774641d8cda24251337ce2d055caf05a14a9e088
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/44628
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/include/lnet/lib-types.h
lnet/include/uapi/linux/lnet/lnet-idl.h
lnet/lnet/api-ni.c
lnet/lnet/lib-msg.c
lnet/utils/wirecheck.c