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 <[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 bbdbd9a commit 60812d2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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)