]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
smb: smbdirect: introduce struct smbdirect_recv_io
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Aug 2025 16:11:32 +0000 (18:11 +0200)
committerSteve French <stfrench@microsoft.com>
Wed, 6 Aug 2025 20:04:13 +0000 (15:04 -0500)
This will be used in client and server soon
in order to replace smbd_response/smb_direct_recvmsg.

Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: Long Li <longli@microsoft.com>
Cc: 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 5db7815b614f89c43f1ef0772e58e2c8f1ce5f31..a7ad31c471a7b696e26ae332573d318f59fabcda 100644 (file)
@@ -54,4 +54,19 @@ struct smbdirect_socket {
        } recv_io;
 };
 
+struct smbdirect_recv_io {
+       struct smbdirect_socket *socket;
+       struct ib_cqe cqe;
+       struct ib_sge sge;
+
+       /* Link to free or reassembly list */
+       struct list_head list;
+
+       /* Indicate if this is the 1st packet of a payload */
+       bool first_segment;
+
+       /* SMBD packet header and payload follows this structure */
+       u8 packet[];
+};
+
 #endif /* __FS_SMB_COMMON_SMBDIRECT_SMBDIRECT_SOCKET_H__ */