[dpdk-dev] [PATCH 2/2] example/ipsec-secgw: add support for cryptodev_start
Hemant Agrawal
hemant.agrawal at nxp.com
Thu Jul 21 12:54:04 CEST 2016
The usual device sequence is configure, queue setup and start.
Crypto device should be started before use.
Signed-off-by: Akhil Goyal <akhil.goyal at nxp.com>
Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
examples/ipsec-secgw/ipsec-secgw.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index 1ca144b..302499c 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);
+ /* Start device */
+ if (rte_cryptodev_start(cdev_id))
+ rte_panic("Failed to start crypto dev for "
+ "cdev_id=%u\n", cdev_id);
}
printf("\n");
--
1.9.1
More information about the dev
mailing list