From: Hemant Agrawal Date: Thu, 21 Jul 2016 10:54:04 +0000 (+0530) Subject: examples/ipsec-secgw: call start function X-Git-Tag: spdx-start~6107 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b86eeb2aba2bd7c0fc22a317bcf7cfb5e3541e06;p=dpdk.git 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 Signed-off-by: Hemant Agrawal Signed-off-by: Thomas Monjalon Acked-by: Pablo de Lara --- diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 1ca144b883..5d04eb3feb 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");