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 <[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 0edf9fc commit 33dd53a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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)