aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2025-08-21 12:22:46 +0200
committerSteve French <stfrench@microsoft.com>2025-09-28 18:29:49 -0500
commitea5a4e31ab4757273dacaa7e05368892516b53d6 (patch)
tree51cf7dff6b21968e3d6cd6634831717c5ef1a788
parentsmb: client: make use of smbdirect_socket_parameters.{initiator_depth,respond... (diff)
downloadlinux-ea5a4e31ab4757273dacaa7e05368892516b53d6.tar.gz
linux-ea5a4e31ab4757273dacaa7e05368892516b53d6.zip
smb: client: make use of smbdirect_socket.rdma.legacy_iwarp
Currently it's write only for the client, but it will likely be use for debugging later. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Acked-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/smb/client/smbdirect.c2
-rw-r--r--fs/smb/client/smbdirect.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/fs/smb/client/smbdirect.c b/fs/smb/client/smbdirect.c
index a55163e2876b..b910d62d66c5 100644
--- a/fs/smb/client/smbdirect.c
+++ b/fs/smb/client/smbdirect.c
@@ -318,7 +318,7 @@ static int smbd_conn_upcall(
ird32 = min_t(u32, ird32, U8_MAX);
ord32 = min_t(u32, ord32, U8_MAX);
- info->legacy_iwarp = true;
+ sc->rdma.legacy_iwarp = true;
peer_initiator_depth = (u8)ird32;
peer_responder_resources = (u8)ord32;
}
diff --git a/fs/smb/client/smbdirect.h b/fs/smb/client/smbdirect.h
index a5a70b3c63cb..1bb9b9412685 100644
--- a/fs/smb/client/smbdirect.h
+++ b/fs/smb/client/smbdirect.h
@@ -50,8 +50,6 @@ struct smbd_connection {
int protocol;
/* Memory registrations */
- /* Maximum number of RDMA read/write outstanding on this connection */
- bool legacy_iwarp;
/* Maximum number of pages in a single RDMA write/read on this connection */
int max_frmr_depth;
/*