smb: smbdirect: add smbdirect_socket.{send,recv}_io.mem.{cache,pool}
This will be the common location memory caches and pools. 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>
This commit is contained in:
parent
977ea06fdd
commit
5ef8278e37
|
|
@ -39,6 +39,20 @@ struct smbdirect_socket {
|
|||
|
||||
struct smbdirect_socket_parameters parameters;
|
||||
|
||||
/*
|
||||
* The state for posted send buffers
|
||||
*/
|
||||
struct {
|
||||
/*
|
||||
* Memory pools for preallocating
|
||||
* smbdirect_send_io buffers
|
||||
*/
|
||||
struct {
|
||||
struct kmem_cache *cache;
|
||||
mempool_t *pool;
|
||||
} mem;
|
||||
} send_io;
|
||||
|
||||
/*
|
||||
* The state for posted receive buffers
|
||||
*/
|
||||
|
|
@ -52,6 +66,15 @@ struct smbdirect_socket {
|
|||
SMBDIRECT_EXPECT_DATA_TRANSFER = 3,
|
||||
} expected;
|
||||
|
||||
/*
|
||||
* Memory pools for preallocating
|
||||
* smbdirect_recv_io buffers
|
||||
*/
|
||||
struct {
|
||||
struct kmem_cache *cache;
|
||||
mempool_t *pool;
|
||||
} mem;
|
||||
|
||||
/*
|
||||
* The list of free smbdirect_recv_io
|
||||
* structures
|
||||
|
|
|
|||
Loading…
Reference in New Issue