summaryrefslogtreecommitdiff
path: root/examples/fips_validation
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2019-01-10 14:50:11 +0000
committerPablo de Lara <pablo.de.lara.guarch@intel.com>2019-01-10 16:57:22 +0100
commit725d2a7fbf717d9a6189ac9b49bad2b4f5391a60 (patch)
tree8cbcd118956e2125190f4366c087d4317dce0df1 /examples/fips_validation
parent11fdbf1b78660e058a059b02504065935b9ff730 (diff)
downloaddpdk-725d2a7fbf717d9a6189ac9b49bad2b4f5391a60.zip
dpdk-725d2a7fbf717d9a6189ac9b49bad2b4f5391a60.tar.gz
dpdk-725d2a7fbf717d9a6189ac9b49bad2b4f5391a60.tar.xz
cryptodev: change queue pair configure structure
This patch changes the cryptodev queue pair configure structure to enable two mempool passed into cryptodev PMD simutaneously. Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Acked-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
Diffstat (limited to 'examples/fips_validation')
-rw-r--r--examples/fips_validation/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/fips_validation/main.c b/examples/fips_validation/main.c
index e7559c6..384b7a2 100644
--- a/examples/fips_validation/main.c
+++ b/examples/fips_validation/main.c
@@ -39,7 +39,7 @@ static int
cryptodev_fips_validate_app_int(void)
{
struct rte_cryptodev_config conf = {rte_socket_id(), 1};
- struct rte_cryptodev_qp_conf qp_conf = {128};
+ struct rte_cryptodev_qp_conf qp_conf = {128, NULL, NULL};
int ret;
ret = rte_cryptodev_configure(env.dev_id, &conf);
@@ -52,7 +52,7 @@ cryptodev_fips_validate_app_int(void)
return ret;
ret = rte_cryptodev_queue_pair_setup(env.dev_id, 0, &qp_conf,
- rte_socket_id(), env.mpool);
+ rte_socket_id());
if (ret < 0)
return ret;