From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0087.outbound.protection.outlook.com [104.47.40.87]) by dpdk.org (Postfix) with ESMTP id 0723C2BD7 for ; Thu, 21 Jul 2016 07:19:51 +0200 (CEST) Received: from DM2PR03CA0035.namprd03.prod.outlook.com (10.141.96.34) by SN2PR03MB1936.namprd03.prod.outlook.com (10.164.114.160) with Microsoft SMTP Server (TLS) id 15.1.447.15; Thu, 21 Jul 2016 05:19:47 +0000 Received: from BY2FFO11FD024.protection.gbl (2a01:111:f400:7c0c::121) by DM2PR03CA0035.outlook.office365.com (2a01:111:e400:2428::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.544.10 via Frontend Transport; Thu, 21 Jul 2016 05:19:47 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD024.mail.protection.outlook.com (10.1.15.213) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Thu, 21 Jul 2016 05:19:47 +0000 Received: from netperf1.ap.freescale.net ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6L5Jia5015876; Wed, 20 Jul 2016 22:19:45 -0700 From: Hemant Agrawal To: , CC: Date: Thu, 21 Jul 2016 16:24:03 +0530 Message-ID: <1469098444-2156-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131135519877599151; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(87936001)(8936002)(2906002)(48376002)(106466001)(4326007)(8676002)(356003)(68736007)(229853001)(92566002)(47776003)(19580405001)(97736004)(81156014)(50466002)(33646002)(19580395003)(189998001)(81166006)(305945005)(36756003)(586003)(11100500001)(6806005)(104016004)(50226002)(7846002)(5001770100001)(86362001)(105606002)(77096005)(85426001)(5003940100001)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB1936; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD024; 1:WeJPKVH/pAvGqyDVvMy2RBQ2OXecNskUMyHu54zQgvk7nT2b2uDpVhFQ/xB+73ECWzIEFlLt3qxXak3TbX5t6Z4/xlGIKEJPQXhBJZJSTC5TBk0CY4iZ82Wc8aGRqvi3NlHEVNkrVQLNSKPTNNWP0t7EcrnnSK+jxgfFRtNPr5NCbXm4t8BsNmG0PKKHXLaWuuBTd/B9lstUzxd/fef81arP/QK7otf2t5AN5/YK3H9PeZlyMQ+MpxFiTLGG6YbUlVOUr+w+o/sDeGLflA/NbpDmN+x4r98wMXf3UZUPAIr45HxU2uwyeV2alZUIByhYQmC1KY3CJpkUzC4G9vNsYQQzod0FwuNWz3LgPLy0SJCoNJA0Lq84abcBZV1VfKsgPuI04CFH01ISROV5wrn7o6i7m4Q8A7k1nf4VPxOnoho5Lxo0tNzIKP4M2ZrbfgEPz5vUxkOuCrKQ1qFZ9NWrJqLlwZG9U0s+HsMqp462UYvmsKUuNRNfw/X8oeEkYF4pR0Y6XtBW8y5izc9oPOfAW/LudzrQ3WWzvixmxTrZobsugWwDvoLvLgnt80YZrAYvQnEHTfmiJ3YSgSyEsnisWqoFOsDRz+InA27OVUjyoueERJNOjoAEWIdM+qDPO0dc1WjNmsqHooCYba5MKz25ACTax0AyP4u0mdm49ZKcNTk= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 8f71fc79-53d8-44b7-8faf-08d3b126a234 X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 2:BBDXjKNhRNl8Do02emgfyySA0C7WpUvSxHJeC2xjAjZ112J4zZX1+JFbeyz8HCdyrdcu000vNiD56+w5IsFJLAdV1dqIja6PI6Mb+jvnYi57d71PzP6E9N9vONaysvWA6d3e9ETPmZXzFcAfI8BEsHwi6yCvnGi8mAroaksRFSZjqiLlP6uxU3dY90D1AIT3; 3:LNUbYudI85UK8vQky+hLAyzH81amultKpezMZqZTZ5VpTLnXyLGOnRmsZIPRTsX2FFtvqe4TW8WBsJd1peW/DRoDuoBVWm8tdMfYXMKyxWMIIXbrVnm6bADLHgiA+2McBVW8dmEq9VOhQvj6a++IbotiuA5Kn0u8ZkeXRv/dPZtOvYirCFpxKgWNVohuq5Nze8Sfzrz/1cOyaqcK2P7VLUbzFEk+tJ7IiQXvT56BMb8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR03MB1936; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 25:a7sF1XEHaGts03yX4RxRc2kwGIdPhQvtC0HUlFA92uEX+Hk1BRqN05yxouUiRfF4f7qADly/07HBGTQOltijzOC960jRfe4C3AsfdOHPvM+yAeGvbX3H/11jAvPviKbqQ3Dw5Mq4EDEpgjqCZtAXL9WsBePamrdx4uRVGcHtxIBV1n9dQUsJJ9Qb0qn9KA3eNKnUImU3WxIeznPKZS8kBNiWpFmngS1bI4TNn7jJybty1oDq5tQSd9blYQTPyc3cKbh52jPpz5vuHWqpUxknvMlvMnaggr0CZLwpIwqrfypUU48w5BLhfYoh1fc7VUa/awwuXgRh7vxJhl48+zF1Rjw8w0vntJQsvXt77naerjot6+WJi56dYXfLpoFdqIqzaldQF3iXJBr8oPjZ2mYEeynKJ1JextM9e2iQbklogfFodtnFVrqBB9/Tp95FBrdRzQmYgiW/JCVxz/qTt0dv1ydecgADjmR2Mnv/n7j4JIQW/mhlYXbHh2+pXmH+xpPNJlbWToi3z82nNxr+HYZEBVoV0AjFXR1Wn5QpYD2xhKFthtUjB+Um8nxFKmWuVOU2bcafYvrWkp4NqjTqNmUoGg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(13015025)(13018025)(13017025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:SN2PR03MB1936; BCL:0; PCL:0; RULEID:(400006); SRVR:SN2PR03MB1936; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 4:CP4n66VzLgydiVQvbBn1P5G1kMPPobvSdPPxfIajkCJrUJTORBMnOqBh2yd3zpOj8A7yq5CiMuZa8qKqcE4uoj6M1bejqeATxGMYpj6xwiyR93THm6O4IJ1uSEMGqzBUUhwZvscN2sTilFXk2Jt53vFBCgb9AzaDwPGIEebj276QUwmC93QJqLtrei70RcsnX80x+1g7fmmUf+ad6Iu8bs7svM7lQho+ek8Mr2gg60+xt/IjwJoXQ6hyADJS7N3bDJr1fcO89iMNJrotb3LUx3TiclFdnKAVcxXgcLQZSUtfnV5km5C/lNFC4Pj+afhLpDMkyVaOxsjw6mtBtVPgWdbhw3tQF00oZXF303eh2owotJvQ1yGph67bnCUsNC5a0UbNyO7Br8RhZMdW4aF/H3uTkNiI/eGY7Q1w6XBRWVcQ1OO7RZyx4YXYAX7gdTt4iyNx7b6eyIhgU3AbRB1/aPfEEXG9dQrCne0rflxYoiy8j7sWfl+CNO09tSKL441b675NQIQlJghvTo9xVr5EAw== X-Forefront-PRVS: 0010D93EFE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB1936; 23:tnwZaxipTrPpyHipUp0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ii?Q?GK8/Nw9Z4SL/1vFJ+mEux+O2ICet4qFbu/VLsg99yUIXocl1zVu76ztOODfV?= =?us-ascii?Q?Hml9NfFPo0haoWnwqz1IRuSqAoMAU5YDYWKL6H1+vj4S4u4eP0ACXweswhWe?= =?us-ascii?Q?rVa+21ugdFHifvZRB2MoP3i5WNaiDGk8TO6l79Svce6cWiSX4HYgrriFOnt4?= =?us-ascii?Q?t4/ptBN+fHQ1VGxzGFhQyJ11mvEc75t0iYLfQQn2vllnc7OFA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB1936; 5:4NF1AdOIVND/gQNmNH5g32XFeAD751o+J8CAxNEkLcMEu4LH9RCCBBWAJ0QpKn1GHqMVignnnqVh3kc2+JXi1zKrgwLjuz84WQRFLj6KdpnJ0kiAxZHH9ZMCm7ZZxC6EgcxuzmJEDKPg/UUydrIKoFnJuCH0EGeqIRoulgFQ9iE=; 24:W73jD9iYBrJaMoAtSnT2smuev/B5Pz2A+ej4SP394Ct0CwYMB5644uyG5bN6LaajKQrQ+dRaJ1qYsHL6f/YfZhZv7j23HZSwnblBJBpt29M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2016 05:19:47.5571 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR03MB1936 Subject: [dpdk-dev] [PATCH 1/2] example/l2fwd-crypto: add support for cryptodev_start 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: Thu, 21 Jul 2016 05:19:51 -0000 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 --- examples/l2fwd-crypto/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index dd39cc1..62e1c39 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -1793,6 +1793,12 @@ initialize_cryptodevs(struct l2fwd_crypto_options *options, unsigned nb_ports, if (retval < 0) { printf("Failed to setup queue pair %u on cryptodev %u", 0, cdev_id); + } + /* Start device */ + retval = rte_cryptodev_start(cdev_id); + if (retval < 0) { + printf("rte_cryptodev_start:err=%d, cdev_id=%u\n", + retval, (unsigned)cdev_id); return -1; } -- 1.9.1