Skip to content

Commit 92ac696

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce struct smbdirect_send_io
This will be used in client and server soon in order to replace smbd_request/smb_direct_sendmsg. 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 8b5964a commit 92ac696

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,30 @@ struct smbdirect_socket {
8989
} recv_io;
9090
};
9191

92+
struct smbdirect_send_io {
93+
struct smbdirect_socket *socket;
94+
struct ib_cqe cqe;
95+
96+
/*
97+
* The SGE entries for this work request
98+
*
99+
* The first points to the packet header
100+
*/
101+
#define SMBDIRECT_SEND_IO_MAX_SGE 6
102+
size_t num_sge;
103+
struct ib_sge sge[SMBDIRECT_SEND_IO_MAX_SGE];
104+
105+
/*
106+
* Link to the list of sibling smbdirect_send_io
107+
* messages.
108+
*/
109+
struct list_head sibling_list;
110+
struct ib_send_wr wr;
111+
112+
/* SMBD packet header follows this structure */
113+
u8 packet[];
114+
};
115+
92116
struct smbdirect_recv_io {
93117
struct smbdirect_socket *socket;
94118
struct ib_cqe cqe;

0 commit comments

Comments
 (0)