Skip to content

Commit ea5a4e3

Browse files
metze-sambasmfrench
authored andcommitted
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>
1 parent dd53b45 commit ea5a4e3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

fs/smb/client/smbdirect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static int smbd_conn_upcall(
318318
ird32 = min_t(u32, ird32, U8_MAX);
319319
ord32 = min_t(u32, ord32, U8_MAX);
320320

321-
info->legacy_iwarp = true;
321+
sc->rdma.legacy_iwarp = true;
322322
peer_initiator_depth = (u8)ird32;
323323
peer_responder_resources = (u8)ord32;
324324
}

fs/smb/client/smbdirect.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ struct smbd_connection {
5050
int protocol;
5151

5252
/* Memory registrations */
53-
/* Maximum number of RDMA read/write outstanding on this connection */
54-
bool legacy_iwarp;
5553
/* Maximum number of pages in a single RDMA write/read on this connection */
5654
int max_frmr_depth;
5755
/*

0 commit comments

Comments
 (0)