From patchwork Wed Apr 11 09:15:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 133140 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp442986ljb; Wed, 11 Apr 2018 02:17:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/TVJEIZBhIkdYIkinBQER1bL0cM5d8zCU25Hyzr2gWFnocPoZgu7QGTq44tL6EUUNbrSsB X-Received: by 10.28.109.131 with SMTP id b3mr1804223wmi.145.1523438268697; Wed, 11 Apr 2018 02:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523438268; cv=none; d=google.com; s=arc-20160816; b=sBphlzBXjXM05bUMtZ3+zc8Kf7I0V3zABZtLw9kthj/+bPuKMDS1ijXDGgrmMrCou8 EkExqGlqM1Vm188WyFugP4a7SYSlv+nFCggWOUIyqF6jtu2LOcO1nYhRJ3R+lJ9VgsLS pIkSZ/dKO8E1ycwFhNFPkwQDlQjcM03eU4OB0QiRZMFbXPL3FRIekm6WTnmcEMsJxutF eKnp4GFPJib7HmETRSECwGvx0GNcXcmhSiOihyX8MwE6ay/opQMNCGP7sePYlNn4TXtl MAIa2pITEMYzq7bTAD8NutBdETQx66t8iAFr9yJZu6KspBRnuYlBJlUmx/i1bREkT469 hYDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:cc:to:from :dkim-signature:arc-authentication-results; bh=bPljIs6IScmgB5+tpBnEeSUS0P8IQvOpORnXTchh5XA=; b=WdIXg14VobIGOlkth6v76F+toKq9arUlgIvpiEvXwB7egN5GMI6Ut+k48bkP7eEx5P zSeH8YbBr1BIB1Dwu9LhfHJHkdRsfO6OnV1STBf+tK5GROVOiNq0VYBzoe8dnxUw/DF5 Ftesq1JipxhxsufeU04u/Bm/SebZliS4u7lPwTajH8Rbq7CtwNAfnD9eJRT1Jsb7ClhQ eDHD21pjsES+oi/fC6COK7BZ1x8SfeBgsB4h1pdNDeiaKL+xKJtKvAaEgBsA5obwLerP 8//UyJ3T5bheJS3TCH254e62D9Pk7Tpyy0wcWK3pmrsPcSTDut9xIJ3RFeCFfvBpwnhA HgLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=vcWW4P8K; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 30si524761wri.548.2018.04.11.02.17.48; Wed, 11 Apr 2018 02:17:48 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=vcWW4P8K; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 374BF1BB04; Wed, 11 Apr 2018 11:17:48 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40043.outbound.protection.outlook.com [40.107.4.43]) by dpdk.org (Postfix) with ESMTP id 89A051B8D4 for ; Wed, 11 Apr 2018 11:17:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=bPljIs6IScmgB5+tpBnEeSUS0P8IQvOpORnXTchh5XA=; b=vcWW4P8Km3Rp+QHnKMClsBpk7/tEYeMEUkfQiv2o7aLxCLJPsgZH2tGfVxNYHZKAVOGz9FCtiCrXDALGbMsZ/UBaJqoIp5Bu6V+kbddpIl7jk21HpxLy9TmDqjEnuTxwYzQkGSHZGw9jM12YzAgAWie/303E0kxKGwxSYHPOzeo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.653.12; Wed, 11 Apr 2018 09:17:44 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, dpdk-up@NXP1.onmicrosoft.com Date: Wed, 11 Apr 2018 14:45:47 +0530 Message-Id: <1523438147-11739-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:d::33) To AM2PR04MB0756.eurprd04.prod.outlook.com (2a01:111:e400:8411::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0756; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 3:QiCO6vaVP6HR231susMfBBJpe5f0T7TXaeyz7BBp25w6UYt9ICFXul+nEyq3IhZ3va2J5m/8wZSNXp7tIBeQmnBPZ3KJiGl2W9uVN/H0EvGL1BHyqGSOMnycKVTFwyJM9oiWW2zXQNyMW/JfY+sOnUVEqAl5SszGO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QhOouDoba3ynRgGz42qDNd5kMI3X7575mq+qCb6l30yTzuZfIFJbN+UJ2FMrKApfKY+5yZfpK1flQIm/fa6xWhaFO/cHD4oXiTGxSlgI3bzOk30B3kUI4p4ox9tzoLGoyypfkd+OCkFX4se9E1uIrUiAj3ygjL4Jm8fefC+n74T/KnwtamNiEKILycC; 4:6Qd7J8k+gaDaA6M4GHkWZ4zwxmbSjeJIPLbGmnOOVhUcp/q5l7pjI/G0NzueFTdVDinGe4z2WTv+CkxFnqeSpBe6vNkSEn7uQmULv3rASOkPD4JtdyOnIqIhAWtIYaXUgMUSw5aFrdRAeebw9MiGkqwTTfh5cqYZkMw7qqZ0O4vYuLGf1o3X5W/GWk+zllumC1onHFdCPtRtbGvbnSpa0DkX/Fido45hbwPlCGyGeYriHD8HwoHy+44d/t0VqJ3JQ2RH0DYnJx73rCcCmhf2pbs/dH+IGAh2O8Cf+J5DcwWRUBMbkRhfHrjSDoubggLq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0756; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0756; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(396003)(346002)(376002)(39380400002)(189003)(199004)(316002)(2351001)(7736002)(476003)(486006)(305945005)(51416003)(956004)(66066001)(55236004)(1857600001)(386003)(73566003)(6506007)(52116002)(53936002)(26005)(47776003)(2616005)(5009440100003)(478600001)(97736004)(107886003)(86362001)(2906002)(186003)(6116002)(105586002)(5660300001)(4326008)(25786009)(575784001)(48376002)(81156014)(8676002)(6512007)(6916009)(50466002)(8936002)(50226002)(81166006)(6486002)(16586007)(2361001)(68736007)(106356001)(3846002)(36756003)(16526019)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0756; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0756; 23:rf83yize+1htXXa8NtJ8uujiY4jWTMSGMeFeAMeF4?= wMfvz4iVAJIp5BKsiK87MRNVRkAN2C43g7inQtGf6cBi2ik+5s/ZiBWnpLdhoa4L94isdrDBWVPeLQSn+jTCXNEfF5EItFr+Tu7OWvlysXmGH/MXi2E4VP3VforjDDrijjilAyWC6+aBEQ7bDix7Gl0+Ii3huw8DO1C+EpNCTnmAiwwQcMtW4fdhSeWtF/l00MZP4Yk7Iu6+vDAqghF2ZAorxOTRqcgyrC8clmiAsdAfGyGo9OoUjeqDVigP8tGFpJ5oPTkGQfDdDd76aRbZ/dhDf60yiNXUVTu4eKqpEj2tREeWbchfiD38ztMYF9iBn/NYX2cloY/yZ/J0COibiVPqL5jvtJs1ibLkpgnonk4rDTg17cf3np0rcPSIgPjqvNqSUsfXnWOgFL70AaTQ1bw/QVxQ7iMIy9+EPk9jn1p8SHKRRtkXZ8JgT0YbNqAOAjyCqAJZwH1rUSp40vBnAc5D996X/lzlipoYMUD/XIDxqQLulHDL3JrqH3eWq7+ht4xTJ6KOEQDChArwuN6v6WrckFEo5ROviZGXc8w+iZiW0u1Wh0DZh8bWuaSq4XvGBMtoWE4XjS1CFBotu+6MLOBg17v85P3nZRl6igbGgRAM26U4WPfcbJFOSZKZyNWCFc0kEB2vtcDKhqpcY/SUoEsCW8bw0UUVCQEwWGz72/WI22iiGfG8aPvUu1BUwQzBrT54gCNs4BtNPKl6y/xvreg7AmYVtYW/qWgjbcuWGrOtRMt+MRw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ba8hy3oFNvc8Vj7n7zO7QatscFK3Ub3fl2CtXP6gql2daMv6ayyfko55fQAEyt/YPKm5S9Gn+IbsTKomcMg5Lxl1caD+8y4iWz1agx2VbMeECUChSJESclrdtU1l/GKjwtTVDWij5kTDI9qniERCwvQDnIbwdKk/rtKlLn129BHRPRh1syszIA==; 5:OD4BMcoKbs6uSVc3NFKgxB4dcvsBb5ul5sCcBjeKpxSTq1e5dzUw0J5hTEI0pRRye8/cVV7Vs3BZE9pK81GQkcFVXHAete3DX7RyLQWClevTR6/J9sqD32d3MQ4oz5Jq+/XHmdS++3L48tDW3ihXlriVYEkTAVa6VEwpvBBAsJk=; 24:x6rZaUv3hCKgfOnwOytUiLz8IdeXArI1hxzMfJ1boHSlxjabugq9Zwhetjg5QZAVG6sYU+NBAmOoud2zh26EMvIuauke1VnLZR6CYtNFEtw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0756; 7:BNn3SC/rLTLZxizEbllkFYMw42TS0kfSGaUXKui6oNyk8E+RBriBOogyUmpgc8gPU4m5Bt7plqxCm3KjCyARYfN4HFjdbjaVmqMY0n5Iu3SjdQ6muaa/tfnCNhxaPs+tcsrj/kU09RDFvyLEVoi5MF78GTP+KXc0tzA3DRSNPzaSwAxocSQzBk2VWnVlE/F1B6kk7bXcW+eZbPzZr357+DWrxmKpPwtF1EsWP4D3pHVNi9JjLMcTCpfJiFQ5zea6 X-MS-Office365-Filtering-Correlation-Id: 6a89d55c-a7c5-4dc5-ed2f-08d59f8d15e8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2018 09:17:44.0522 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a89d55c-a7c5-4dc5-ed2f-08d59f8d15e8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0756 Subject: [dpdk-dev] [PATCH] examples/l2fwd-crypto: fix the default aead assignments X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The code is incorrectly updating the authxform instead of aead xforms. Fixes: b79e4c00af0e ("cryptodev: use AES-GCM/CCM as AEAD algorithms") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- examples/l2fwd-crypto/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 Acked-by: Akhil Goyal Acked-by: Pablo de Lara diff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c index 4d8341e..38e0c7e 100644 --- a/examples/l2fwd-crypto/main.c +++ b/examples/l2fwd-crypto/main.c @@ -1474,8 +1474,8 @@ l2fwd_crypto_default_options(struct l2fwd_crypto_options *options) options->aead_iv_random_size = -1; options->aead_iv.length = 0; - options->auth_xform.aead.algo = RTE_CRYPTO_AEAD_AES_GCM; - options->auth_xform.aead.op = RTE_CRYPTO_AEAD_OP_ENCRYPT; + options->aead_xform.aead.algo = RTE_CRYPTO_AEAD_AES_GCM; + options->aead_xform.aead.op = RTE_CRYPTO_AEAD_OP_ENCRYPT; options->aad_param = 0; options->aad_random_size = -1;