From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 2/2] examples/ipsec-secgw: call start function Date: Fri, 22 Jul 2016 11:44:23 +0200 Message-ID: <1469180663-24259-3-git-send-email-thomas.monjalon@6wind.com> References: <1469098444-2156-2-git-send-email-hemant.agrawal@nxp.com> <1469180663-24259-1-git-send-email-thomas.monjalon@6wind.com> Cc: dev@dpdk.org To: Akhil Goyal , Hemant Agrawal , declan.doherty@intel.com, pablo.de.lara.guarch@intel.com Return-path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id C2C885581 for ; Fri, 22 Jul 2016 11:44:29 +0200 (CEST) Received: by mail-wm0-f41.google.com with SMTP id q128so50401631wma.1 for ; Fri, 22 Jul 2016 02:44:29 -0700 (PDT) In-Reply-To: <1469180663-24259-1-git-send-email-thomas.monjalon@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Hemant Agrawal 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 --- 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..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"); -- 2.7.0