]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
smb: smbdirect: introduce struct smbdirect_send_batch
authorStefan Metzmacher <metze@samba.org>
Mon, 18 Aug 2025 19:13:03 +0000 (21:13 +0200)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Sep 2025 23:29:47 +0000 (18:29 -0500)
This will replace struct smb_direct_send_ctx in the server
and allow us move code to the common smbdirect layer soon.

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 7c2147a0244a4f3f7d0abca9e72841c6c0017157..e1454ccf849b98889620b32a178b1a56bd606bb9 100644 (file)
@@ -210,6 +210,23 @@ struct smbdirect_send_io {
        u8 packet[];
 };
 
+struct smbdirect_send_batch {
+       /*
+        * List of smbdirect_send_io messages
+        */
+       struct list_head msg_list;
+       /*
+        * Number of list entries
+        */
+       size_t wr_cnt;
+
+       /*
+        * Possible remote key invalidation state
+        */
+       bool need_invalidate_rkey;
+       u32 remote_key;
+};
+
 struct smbdirect_recv_io {
        struct smbdirect_socket *socket;
        struct ib_cqe cqe;