summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2019-01-15 10:38:08 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-01-18 09:47:26 +0100
commit00479d9cc517b4c8fb6a8abc1b066e36a7e32810 (patch)
tree04fffffb89713e358bbe65786c924448c07708ba /examples
parentd79035b7dd6e599589552573b53c138f488dead3 (diff)
downloaddpdk-next-eventdev-00479d9cc517b4c8fb6a8abc1b066e36a7e32810.zip
dpdk-next-eventdev-00479d9cc517b4c8fb6a8abc1b066e36a7e32810.tar.gz
dpdk-next-eventdev-00479d9cc517b4c8fb6a8abc1b066e36a7e32810.tar.xz
examples/vhost_crypto: fix session private mempool
This patch fixes the incorrect session private mempool passing to cryptodev. Fixes: ac5e42daca19 ("vhost/crypto: use separate session mempools") Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/vhost_crypto/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c
index 8bdcb3a..ac7118e 100644
--- a/examples/vhost_crypto/main.c
+++ b/examples/vhost_crypto/main.c
@@ -541,7 +541,7 @@ main(int argc, char *argv[])
rte_cryptodev_sym_get_private_session_size(
info->cid), 64, 0, NULL, NULL, NULL, NULL,
rte_lcore_to_socket_id(lo->lcore_id), 0);
- if (!info->sess_priv_pool || info->sess_pool) {
+ if (!info->sess_priv_pool || !info->sess_pool) {
RTE_LOG(ERR, USER1, "Failed to create mempool");
goto error_exit;
}
@@ -562,7 +562,7 @@ main(int argc, char *argv[])
qp_conf.nb_descriptors = NB_CRYPTO_DESCRIPTORS;
qp_conf.mp_session = info->sess_pool;
- qp_conf.mp_session_private = info->sess_pool;
+ qp_conf.mp_session_private = info->sess_priv_pool;
for (j = 0; j < dev_info.max_nb_queue_pairs; j++) {
ret = rte_cryptodev_queue_pair_setup(info->cid, j,