]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: client: make use of smbdirect_socket.rdma.legacy_iwarp
authorStefan Metzmacher <metze@samba.org>
Thu, 21 Aug 2025 10:22:46 +0000 (12:22 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:49 +0000 (18:29 -0500)
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>
fs/smb/client/smbdirect.c
fs/smb/client/smbdirect.h

index a55163e2876b7a9d1c5b8bdff6608f6e6134fbe7..b910d62d66c58409501470b8a4ff6f6131db285a 100644 (file)
@@ -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;
                        }
index a5a70b3c63cb83339531a8392f9e55be68c5b0a7..1bb9b9412685bd9e68359c52e7c52fc46efbe0f0 100644 (file)
@@ -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;
        /*