Skip to content

Commit 3515aa6

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: add SMBDIRECT_RECV_IO_MAX_SGE
This will allow the client and server specific defines to be replaced. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent b126645 commit 3515aa6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ struct smbdirect_socket {
9292
struct smbdirect_recv_io {
9393
struct smbdirect_socket *socket;
9494
struct ib_cqe cqe;
95+
96+
/*
97+
* For now we only use a single SGE
98+
* as we have just one large buffer
99+
* per posted recv.
100+
*/
101+
#define SMBDIRECT_RECV_IO_MAX_SGE 1
95102
struct ib_sge sge;
96103

97104
/* Link to free or reassembly list */

0 commit comments

Comments
 (0)