Skip to content

Commit 60812d2

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce struct smbdirect_recv_io
This will be used in client and server soon in order to replace smbd_response/smb_direct_recvmsg. 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 bbdbd9a commit 60812d2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,19 @@ struct smbdirect_socket {
5454
} recv_io;
5555
};
5656

57+
struct smbdirect_recv_io {
58+
struct smbdirect_socket *socket;
59+
struct ib_cqe cqe;
60+
struct ib_sge sge;
61+
62+
/* Link to free or reassembly list */
63+
struct list_head list;
64+
65+
/* Indicate if this is the 1st packet of a payload */
66+
bool first_segment;
67+
68+
/* SMBD packet header and payload follows this structure */
69+
u8 packet[];
70+
};
71+
5772
#endif /* __FS_SMB_COMMON_SMBDIRECT_SMBDIRECT_SOCKET_H__ */

0 commit comments

Comments
 (0)