examples: use separate crypto session mempools
[dpdk.git] / examples / ipsec-secgw / ipsec.h
index c998c80..f355528 100644 (file)
@@ -144,6 +144,7 @@ struct ipsec_ctx {
        uint16_t last_qp;
        struct cdev_qp tbl[MAX_QP_PER_LCORE];
        struct rte_mempool *session_pool;
+       struct rte_mempool *session_priv_pool;
        struct rte_mbuf *ol_pkts[MAX_PKT_BURST] __rte_aligned(sizeof(void *));
        uint16_t ol_pkts_cnt;
 };
@@ -166,6 +167,7 @@ struct socket_ctx {
        struct rt_ctx *rt_ip6;
        struct rte_mempool *mbuf_pool;
        struct rte_mempool *session_pool;
+       struct rte_mempool *session_priv_pool;
 };
 
 struct cnt_blk {