Skip to contentSkip to conversation

examples/vhost_crypto: fix session private mempool

PATCH Applied Fan Zhang 3 participants 4 messages Jan 15, 2019 – Jan 17, 2019

lore
Share & tools
lore

Fan Zhang

author
#0 lore raw

PATCH 1/1 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")
---
 examples/vhost_crypto/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
examples/vhost_crypto/main.c +2 -2
index 8bdcb3a9c..ac7118e7e 100644
@@ -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,
Signature · 1 line
2.13.6
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Fan Zhang
Sent: Tuesday, January 15, 2019 10:38 AM
To: [email protected]
Cc: [email protected]
Subject: [dpdk-dev] [PATCH] examples/vhost_crypto: fix session private mempool

Quoted 5 lines

This patch fixes the incorrect session private mempool passing to cryptodev.

Fixes ac5e42daca19 ("vhost/crypto: use separate session mempools")
#3 lore raw
In reply to Fan Zhang
Quoted 10 lines · Fan Zhang

This patch fixes the incorrect session private mempool passing to cryptodev.

Fixes ac5e42daca19 ("vhost/crypto: use separate session mempools")
---
  examples/vhost_crypto/main.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to dpdk-next-virtio/master.

Thanks,
Maxime