smb: server: take the recv_credit_target from the negotiate req and always limit...
authorStefan Metzmacher <metze@samba.org>
Thu, 14 Aug 2025 13:50:05 +0000 (15:50 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:52 +0000 (18:29 -0500)
commit113ed9d56f63d2e4eb3d74002c3d91de1e7a3485
tree344d3e716a496cdce31b64fce0982e91a66c6c38
parent780ccb0fb624600278ef4a65df30e563fd015a2a
smb: server: take the recv_credit_target from the negotiate req and always limit the range

The clients sends the initial recv_credit_target in the negotiate req,
so we should use that.

We also limit the range between 1 and our local defined
sp->recv_credit_max. This will simplify further logic changes.

Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/server/transport_rdma.c