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>
This commit is contained in:
Stefan Metzmacher 2025-08-21 12:22:46 +02:00 committed by Steve French
parent dd53b45fc8
commit ea5a4e31ab
2 changed files with 1 additions and 3 deletions

View 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;
}

View 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;
/*