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 <[email protected]> Cc: Tom Talpey <[email protected]> Cc: Long Li <[email protected]> Cc: Namjae Jeon <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Stefan Metzmacher <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b126645 commit 3515aa6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)