From: Stefan Metzmacher Date: Thu, 21 Aug 2025 10:22:46 +0000 (+0200) Subject: smb: client: make use of smbdirect_socket.rdma.legacy_iwarp X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ea5a4e31ab4757273dacaa7e05368892516b53d6;p=linux-2.6-microblaze.git 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 Cc: Tom Talpey Cc: Long Li Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Acked-by: Namjae Jeon Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French --- 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; /*