]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/cryptodev.h
examples: use separate crypto session mempools
[dpdk.git] / examples / ip_pipeline / cryptodev.h
index d06b3f2f132f206c4534129310353cc500d7bbe2..d00434379edb6f12745ebc0ce13ea97e9c0074a4 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 *