From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+D0eEM+48u3lWRjVvF0VPSVWEbKWt9o9y4dHdjGYxw8=; b=z4ZkCqlqMYIYgi4AZnos6CB+Q0/0uSRpVYbNg9SbddbQ8kjJJW475EuMXHR4n2joqn l6EEe8xjz67i3ePg1nTk1ZnMkJwpG2zIbcLAeVqKcWWSRUKYOZFlmy6l76m12MheO56k /NtbVuHsJz5eRepHiTXSOIH4xrjvfPZk1Z3mfOdjc01TYH9leIBQpfd4vW9RX5lhqsLs YmPIymHLtDSO8eaKm53cFtmTV+Iass4N6+ie6YmLRQZEuQ0fE2aX8pXxKLN4aje6O/Yy 2BdDJv19/DJ04fvitqpj4N7LzMEnl4Rz8Mi5/dRxOBThWfsEethdjV9tX60Z2bZuZ7AK faMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+D0eEM+48u3lWRjVvF0VPSVWEbKWt9o9y4dHdjGYxw8=; b=HSqmCpd2+uCSxU6p8vGVTExE4obxYg+7GC3vNR6HnyYsW4qQQrO/XZLIR9SOeI55Gu /waZM0hxvXE7uJebjc1z46kkfUVrojsZwYurOAk2E+te2NyEBOJiTRbqa8xY+4fdJmOE ESrWx8eb9FRxj3swzgNgrWnQ0JgucDm3X596c+450M5g9YWi/FpbGiGwWJ6ltaGtqAKr klISFASZ6HS9874WwcYuHL+yH35YBFwXmro+E1F1dardL9HmwW5DQtekWgGJkZg7fVKa dxKSztVL+O12fmnW+BC8WM0KZO/FCz+c/4Gjv+PsQS9oT7KtfDLoZVRBtuynJt2DDihR lMKQ== X-Gm-Message-State: AEkoouu7EZspGSHBlnmHZGZLbfd8UObR8D1zxQMF1Tz7c3A6RG1/sZv9KHWeBE/xo/Y4BdDF X-Received: by 10.194.31.68 with SMTP id y4mr64201wjh.149.1469180669524; Fri, 22 Jul 2016 02:44:29 -0700 (PDT) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id g7sm48615wjx.10.2016.07.22.02.44.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jul 2016 02:44:29 -0700 (PDT) From: Thomas Monjalon To: Akhil Goyal , Hemant Agrawal , declan.doherty@intel.com, pablo.de.lara.guarch@intel.com Cc: dev@dpdk.org Date: Fri, 22 Jul 2016 11:44:23 +0200 Message-Id: <1469180663-24259-3-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1469180663-24259-1-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> Subject: [dpdk-dev] [PATCH v2 2/2] examples/ipsec-secgw: call start function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2016 09:44:30 -0000 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