From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH v2 1/2] examples/l2fwd-crypto: call start function Date: Fri, 22 Jul 2016 11:44:22 +0200 Message-ID: <1469180663-24259-2-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-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id BF53B47D1 for ; Fri, 22 Jul 2016 11:44:28 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id f65so50557258wmi.0 for ; Fri, 22 Jul 2016 02:44:28 -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/l2fwd-crypto/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index dd39cc1..66397a0 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -1796,6 +1796,13 @@ initialize_cryptodevs(struct l2fwd_crypto_options *options, unsigned nb_ports, return -1; } + retval = rte_cryptodev_start(cdev_id); + if (retval < 0) { + printf("Failed to start device %u: error %d\n", + cdev_id, retval); + return -1; + } + l2fwd_enabled_crypto_mask |= (1 << cdev_id); enabled_cdevs[cdev_id] = 1; -- 2.7.0