summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Agrawal <hemant.agrawal@nxp.com>2016-07-21 16:24:04 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-22 12:40:21 +0200
commitb86eeb2aba2bd7c0fc22a317bcf7cfb5e3541e06 (patch)
tree194729e0e771526dbc2e2fdbf6467cc3513a643a
parent800386e6b7cc103fb8a94051459801fc6dbdb617 (diff)
downloaddpdk-b86eeb2aba2bd7c0fc22a317bcf7cfb5e3541e06.zip
dpdk-b86eeb2aba2bd7c0fc22a317bcf7cfb5e3541e06.tar.gz
dpdk-b86eeb2aba2bd7c0fc22a317bcf7cfb5e3541e06.tar.xz
examples/ipsec-secgw: call start function
The usual device sequence is configure, queue setup and start. Crypto device should be started before use. Signed-off-by: Akhil Goyal <akhil.goyal@nxp.com> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
-rw-r--r--examples/ipsec-secgw/ipsec-secgw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index 1ca144b..5d04eb3 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -1273,6 +1273,10 @@ cryptodevs_init(void)
&qp_conf, dev_conf.socket_id))
rte_panic("Failed to setup queue %u for "
"cdev_id %u\n", 0, cdev_id);
+
+ if (rte_cryptodev_start(cdev_id))
+ rte_panic("Failed to start cryptodev %u\n",
+ cdev_id);
}
printf("\n");