smb: smbdirect: introduce struct smbdirect_send_batch

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>
This commit is contained in:
Stefan Metzmacher 2025-08-18 21:13:03 +02:00 committed by Steve French
parent 2191b3471d
commit cce93d2d0c

View 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;