From: Stefan Metzmacher Date: Tue, 19 Aug 2025 11:52:29 +0000 (+0200) Subject: smb: smbdirect: introduce smbdirect_socket.statistics X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6889d2f5caa69ff4f523ef11a207fcaedaff8c7e;p=users%2Fhch%2Fmisc.git smb: smbdirect: introduce smbdirect_socket.statistics These will be used by the client and maybe shared code in future. Cc: Steve French Cc: Tom Talpey Cc: Long Li Acked-by: Namjae Jeon Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher Signed-off-by: Steve French --- diff --git a/fs/smb/common/smbdirect/smbdirect_socket.h b/fs/smb/common/smbdirect/smbdirect_socket.h index 11e9b365ac96..649d66cd4a83 100644 --- a/fs/smb/common/smbdirect/smbdirect_socket.h +++ b/fs/smb/common/smbdirect/smbdirect_socket.h @@ -218,6 +218,17 @@ struct smbdirect_socket { wait_queue_head_t wait_queue; } credits; } rw_io; + + /* + * For debug purposes + */ + struct { + u64 get_receive_buffer; + u64 put_receive_buffer; + u64 enqueue_reassembly_queue; + u64 dequeue_reassembly_queue; + u64 send_empty; + } statistics; }; static __always_inline void smbdirect_socket_init(struct smbdirect_socket *sc)