From 4072d863c240fa5466f0f616f7e9b1cfcdf0aa0e Mon Sep 17 00:00:00 2001 From: Alexey Lyashkov Date: Mon, 20 Apr 2020 21:42:50 +0300 Subject: [PATCH] LU-10157 lnet: restore an maximal fragments count Lowering a number of fragments blocks a connection from older clients who wantsto use 256 fragments to transfer. Let's restore this number to the original value. Fixes: 272e49ce2d5d ("LU-10157 lnet: make LNET_MAX_IOV dependent on page size") Test-Parameters: trivial testlist=lnet-selftest,sanity-lnet Cray-bug-id: LUS-8139 Signed-off-by: Alexey Lyashkov Change-Id: Ia23aa1fb3d36a65abab6241c9ba75addc1dcce0a Reviewed-on: https://review.whamcloud.com/37385 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Serguei Smirnov Reviewed-by: Shaun Tancheff Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lnet/include/lnet/lib-types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnet/include/lnet/lib-types.h b/lnet/include/lnet/lib-types.h index 76ac7e3..c4b6222 100644 --- a/lnet/include/lnet/lib-types.h +++ b/lnet/include/lnet/lib-types.h @@ -54,7 +54,8 @@ /* Max payload size */ #define LNET_MAX_PAYLOAD LNET_MTU -#define LNET_MAX_IOV (LNET_MAX_PAYLOAD >> PAGE_SHIFT) +/** limit on the number of fragments in discontiguous MDs */ +#define LNET_MAX_IOV 256 /* * This is the maximum health value. -- 1.8.3.1