From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=DJmIl0WvGnF5HYLHZMuSK/14A2HwhYpZTEqyqSpeZO0=; b=seeafVJ1T/t4mHA1wtZSNF//OTWVCXmO93kGJWrtJYQUefrtv5hxzfboJKCf9sDhRr t/Bdw+M6EOYaZcv37gnUyYKfArULBZlHEpwkjmnCa6D2SQvC9o66bHju7aOzCFqJ4wX9 T3IlT5YCnM7Y6jDzdOq/v1uFCp/HnPqdrt7Z/FTWpOsDo8WyvhNMLENFfJ+PGf7G+eMz bLPr8b3SM7uAO999uoFBJVZ5z2xkZ4g8Exga0/Waad0FhsXnQOM19BL+fl8Pg1Mc904j 44oGL8FxpHNEZfTRyPhMlrGlms4s3rbQmSY1sa17r3rgRkHFxA7HP5oa9g7yIxArmade dJiw== 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=DJmIl0WvGnF5HYLHZMuSK/14A2HwhYpZTEqyqSpeZO0=; b=iHQa7eLU+YaMigzjZZtsrCseJT/Rf4Tn5moYLp6GuzqE/fP5S7BY7Ccq7CGqfXXjqa vX/IO/cH0lcQGtJ4m+rHwZJPVp/b+PJ6QGE0d+8aI2JUtW/+1Pb6SQHJcanqmABhYtIg AHB4vfGsgp9cMf8cEaUkFtO0cUKp9LdioDWomK0paPoTDw1qZYesSSwBj7z0VxKc2e8r 2wcZ/QTkd2Dq2YPpkw07B2xv9pbXDrUvACT5IBY8y/n5G8go3/8iVHzdDL7oRXQy/f6/ zZ+wUdjXU8HOYE6NibfD0PEgE2arNIAr0rjesStTrhn09sy8ehGqXpIT53ivp2yxVCS9 msXA== X-Gm-Message-State: AEkoouthccbCe2ibJMTiD/oc7CLNFjZSJ1v7khguBSRTrjdWqXhovZlYUnHYq3xlXedGdS8I X-Received: by 10.28.27.211 with SMTP id b202mr4670405wmb.12.1469180668580; Fri, 22 Jul 2016 02:44:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jul 2016 02:44:28 -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:22 +0200 Message-Id: <1469180663-24259-2-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 1/2] examples/l2fwd-crypto: 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:28 -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/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