Whamcloud - gitweb
LU-9480 lnet: automatic sizing of router pinger buffers 74/25774/23
authorOlaf Weber <olaf@sgi.com>
Fri, 27 Jan 2017 15:16:34 +0000 (16:16 +0100)
committerAmir Shehata <amir.shehata@intel.com>
Tue, 22 Aug 2017 16:21:21 +0000 (16:21 +0000)
commit232bf46410629132e6db06bf59a65bf02f89ef40
tree501c7f8319812ce86ed60f84827bd6cf006d1f2c
parentd062d03aa913f7fcabd603ad6de27d3ed086f6df
LU-9480 lnet: automatic sizing of router pinger buffers

The router pinger uses fixed-size buffers to receive the data
returned by a ping. When a router has more than 16 interfaces
(including loopback) this means the data for some interfaces
is dropped.

Detect this situation, and track the number of remote NIs in
the lnet_rc_data_t structure.  lnet_create_rc_data_locked()
becomes lnet_update_rc_data_locked(), and modified to replace
an existing ping buffer if one is present. It is now also
called by lnet_ping_router_locked() when the existing ping
buffer is too small.

Test-Parameters: trivial
Signed-off-by: Olaf Weber <olaf@sgi.com>
Change-Id: I7286702b8606e25a5c82291ea4138479c4bf010f
Reviewed-on: https://review.whamcloud.com/25774
Reviewed-by: Olaf Weber <olaf.weber@hpe.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Tested-by: Amir Shehata <amir.shehata@intel.com>
lnet/include/lnet/lib-types.h
lnet/lnet/router.c