Skip to content

Commit b7ffb4d

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce smbdirect_socket.recv_io.reassembly.*
This will be used in common between client and server soon. 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 5950045 commit b7ffb4d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,32 @@ struct smbdirect_socket {
6060
struct list_head list;
6161
spinlock_t lock;
6262
} free;
63+
64+
/*
65+
* The list of arrived non-empty smbdirect_recv_io
66+
* structures
67+
*
68+
* This represents the reassembly queue.
69+
*/
70+
struct {
71+
struct list_head list;
72+
spinlock_t lock;
73+
wait_queue_head_t wait_queue;
74+
/* total data length of reassembly queue */
75+
int data_length;
76+
int queue_length;
77+
/* the offset to first buffer in reassembly queue */
78+
int first_entry_offset;
79+
/*
80+
* Indicate if we have received a full packet on the
81+
* connection This is used to identify the first SMBD
82+
* packet of a assembled payload (SMB packet) in
83+
* reassembly queue so we can return a RFC1002 length to
84+
* upper layer to indicate the length of the SMB packet
85+
* received
86+
*/
87+
bool full_packet_received;
88+
} reassembly;
6389
} recv_io;
6490
};
6591

0 commit comments

Comments
 (0)