From e39ba78737b63128cfc7df9d49c8dd49a30ce590 Mon Sep 17 00:00:00 2001 From: Alexey Lyashkov Date: Tue, 19 Jan 2021 22:00:40 -0500 Subject: [PATCH] LU-10157 lnet: restore an maximal fragments count Lowering a number of fragments blocks a connection from older clients who want to use 256 fragments to transfer. Let's restore this number to the original value. Lustre-change: https://review.whamcloud.com/37385 Lustre-commit: 4072d863c240fa5466f0f616f7e9b1cfcdf0aa0e Fixes: 272e49c ("LU-10157 lnet: make LNET_MAX_IOV dependent on page size") Cray-bug-id: LUS-8139 Test-Parameters: trivial testlist=lnet-selftest,sanity-lnet Signed-off-by: Alexey Lyashkov Signed-off-by: Serguei Smirnov Change-Id: I94ac16c1c75efda3e5f3f35ddfc5f39921c15873 Reviewed-on: https://review.whamcloud.com/41277 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Amir Shehata Reviewed-by: Alexey Lyashkov 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 0902deb..496a1b0 100644 --- a/lnet/include/lnet/lib-types.h +++ b/lnet/include/lnet/lib-types.h @@ -53,7 +53,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