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 <[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 8b5964a commit 92ac696

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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)