Skip to content

Commit 33dd53a

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce smbdirect_socket.recv_io.expected
The expected message type can be global as they never change during the after negotiation process. This will replace smbd_response->type and smb_direct_recvmsg->type in future. 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 0edf9fc commit 33dd53a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ struct smbdirect_socket {
3838
} ib;
3939

4040
struct smbdirect_socket_parameters parameters;
41+
42+
/*
43+
* The state for posted receive buffers
44+
*/
45+
struct {
46+
/*
47+
* The type of PDU we are expecting
48+
*/
49+
enum {
50+
SMBDIRECT_EXPECT_NEGOTIATE_REQ = 1,
51+
SMBDIRECT_EXPECT_NEGOTIATE_REP = 2,
52+
SMBDIRECT_EXPECT_DATA_TRANSFER = 3,
53+
} expected;
54+
} recv_io;
4155
};
4256

4357
#endif /* __FS_SMB_COMMON_SMBDIRECT_SMBDIRECT_SOCKET_H__ */

0 commit comments

Comments
 (0)