examples: use separate crypto session mempools
[dpdk.git] / examples / ip_pipeline / cryptodev.h
index d06b3f2..d004343 100644 (file)
@@ -17,6 +17,8 @@ struct cryptodev {
        char name[NAME_SIZE];
        uint16_t dev_id;
        uint32_t n_queues;
+       struct rte_mempool *mp_create;
+       struct rte_mempool *mp_init;
 };
 
 TAILQ_HEAD(cryptodev_list, cryptodev);
@@ -35,6 +37,7 @@ struct cryptodev_params {
        uint32_t dev_id; /**< Valid only when *dev_name* is NULL. */
        uint32_t n_queues;
        uint32_t queue_size;
+       uint32_t session_pool_size;
 };
 
 struct cryptodev *