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>
 
        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
         */
                        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