Skip to content

Commit 6889d2f

Browse files
metze-sambasmfrench
authored andcommitted
smb: smbdirect: introduce smbdirect_socket.statistics
These will be used by the client and maybe shared code in future. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Acked-by: 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 89bae05 commit 6889d2f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

fs/smb/common/smbdirect/smbdirect_socket.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,17 @@ struct smbdirect_socket {
218218
wait_queue_head_t wait_queue;
219219
} credits;
220220
} rw_io;
221+
222+
/*
223+
* For debug purposes
224+
*/
225+
struct {
226+
u64 get_receive_buffer;
227+
u64 put_receive_buffer;
228+
u64 enqueue_reassembly_queue;
229+
u64 dequeue_reassembly_queue;
230+
u64 send_empty;
231+
} statistics;
221232
};
222233

223234
static __always_inline void smbdirect_socket_init(struct smbdirect_socket *sc)

0 commit comments

Comments
 (0)