]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: smbdirect: introduce smbdirect_socket.statistics
authorStefan Metzmacher <metze@samba.org>
Tue, 19 Aug 2025 11:52:29 +0000 (13:52 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:48 +0000 (18:29 -0500)
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>
fs/smb/common/smbdirect/smbdirect_socket.h

index 11e9b365ac96737d0a182ee9dc6534c613dacb08..649d66cd4a83ad7026e8cdc2b8d1cafcbab2cbe5 100644 (file)
@@ -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)