From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0060.outbound.protection.outlook.com [104.47.34.60]) by dpdk.org (Postfix) with ESMTP id F2D748CF6 for ; Tue, 15 Aug 2017 08:45:07 +0200 (CEST) Received: from MWHPR03CA0018.namprd03.prod.outlook.com (10.175.133.156) by BN3PR03MB2260.namprd03.prod.outlook.com (10.166.74.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21; Tue, 15 Aug 2017 06:45:06 +0000 Received: from BL2FFO11FD012.protection.gbl (2a01:111:f400:7c09::171) by MWHPR03CA0018.outlook.office365.com (2603:10b6:300:117::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.21 via Frontend Transport; Tue, 15 Aug 2017 06:45:05 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD012.mail.protection.outlook.com (10.173.161.18) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1304.16 via Frontend Transport; Tue, 15 Aug 2017 06:45:04 +0000 Received: from [127.0.0.1] ([10.214.84.196]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v7F6isew019848; Mon, 14 Aug 2017 23:45:01 -0700 To: "De Lara Guarch, Pablo" , "dev@dpdk.org" , "Doherty, Declan" CC: "hemant.agrawal@nxp.com" References: <20170728110738.28922-1-akhil.goyal@nxp.com> <20170728110738.28922-3-akhil.goyal@nxp.com> From: Akhil Goyal Message-ID: Date: Tue, 15 Aug 2017 12:14:52 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131472531050781432; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(3190300001)(189002)(13464003)(24454002)(199003)(377454003)(51914003)(8656003)(229853002)(33646002)(77096006)(120886001)(86362001)(2906002)(498600001)(68736007)(106466001)(69596002)(105606002)(7246003)(31686004)(7126002)(36756003)(230700001)(6246003)(50466002)(2950100002)(6666003)(81156014)(54356999)(8676002)(81166006)(65826007)(76176999)(50986999)(189998001)(31696002)(305945005)(5660300001)(8936002)(83506001)(85426001)(356003)(23676002)(53546010)(65806001)(4001350100001)(53936002)(104016004)(4326008)(97736004)(47776003)(626005)(64126003)(65956001)(2501003)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2260; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD012; 1:g9mbN7AjjQo26ZMRgfCRr2aoGeUnhFGb9apNWf2yxpmxg0vbkmcVN8XpUTZSy0VMmVihyzT6wlpg5HHc8rDHP7wI36UzvVDs0LiPGF8iqr65jrYmtEXMeCL+wxKxZFfAL1EnGeXJQUXFlpVEtqRT4/9mjQ156QelYGL5KKYkhgjAX/0DMorDZbd/vCjBfX2KfPFDxiD5ER4GyJX27kxD+ZrXIAjEcKO9YZ9EXQsPoZc5JoQ8LSZ6Tfb+2ldR+ROSYpg8efCrOhupEN3uvaLCsExcKCnutYJOd/VjH03KWZFhAwlUkmt6e71JKmVTF7RosfddO19dJkwETObJYySIH1985hlgkDjz2flVP+ok2zpldGdSyClZIU4KDvBx7VOxr7trljQy8tF/DtFCsIrcj8YfU+Zq5CJRfqZb5HBy04Y+ZLuAFB/OUCw7D6edoAmEqE+4fMmvKPDyQm4Lu5/siUMcmNKNpATpE/G/8Ba1+UYv/E4PfZClFeJJpN3s7Y1KdkWsAfYS16xPqDY39kSvxtLqIW4VXBKPqTmDhG5e5IcmVDEo/wy5p5BJQBXdAAJRB/wB8b3yVqivxof00Vad91aDXOIzeiGwO8pYJ0PJutuHauKvCeBSSS1ROdodft8W0z1BQltF4Sfh13iCoi7YfSv+xLioLne6BjDzi2YF+uNxt9VIvEbYM72zpNUtQHQufUExZJMpNSFpyWaaWJsOpj4SpTq+hBss5evNsTy6pV0uE5T1o4ivsTVDMhJ93tbbsGepyEkL2jSTf0uvFk8HMvkxmwnsI8raQfcmWyP45TUk+E5+UXOFWppzEy5QC3QlLAFZv8kV7pUFY3TNoWeBhxOeDzusvHWkQYXjORI2BlDxbHjqmgCTHZQH3bA9y6CszlKWxaU8dSWTHhArD9R3T4jaqSKn8Qr4bS3KnwLhr1w= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22a4c3c5-a312-4e04-daf8-08d4e3a92977 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN3PR03MB2260; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2260; 3:xaiKOlKp2xD1YEODjRmQJ1i6iS4pCCLvt5I14qMTPKr7LOg7XT4cmOYLAOfAlOel9SWqctKgEiaBP4OsD9EzF6IgCK+Cgd26XtHslwxlXbtFUBmm0SZJRw5ZihrbZIxXQNZJwy7hehYS0hpu4E2qW3jg4tN4Yitp8IvcSqwooMTSvkWwSo+w8r/wlAQI69sWI+6Q3E1yhSFSSLULsx3SB4HoNmdJgj+q/3W+8LJYh+KgRV/M2qfbi5G4ZQ2XiavDfm5f2UpWM6l3sp/xjpU5qrywftvC7LDcS+lonWIvpf8KsNria+gOwhpUjC0gO4t279lD0OoPVAhri90bDEli/A==; 25:6nurxhrE+mUmi6C93XACVx+he9Xrw7H3xKijOn/6EKFPbAuxKAOsiCQh50mabMkbrYx/XDsB7C5nO40B8W8ishAP/49FzZI2lySHFdyctEfevGBX8o83FjrlZzB8HnvdPMdXYx/toshZbJ3aIhBU4OFA1R/9brXfINUM3buhHoMpGzq3Ja+kJbtxZuW4qcFZyCcHmoMmeLR1DPGwU5Dq0tEFRttm4ixGO6WdNhfobCXxir102QC/Rn+gBvAXNpCp53oolJAJJDYxNNIDkX9gYoU9DKki7n6weQRTAhiQDPdM29ulFyerMOXzNHk/jP6Px29RP0Ot3wk3MKYXxK1/dA==; 31:01DWkMvKKeOy+4CQb/gD/nowliwrs7591yWz5O1SM7hUtz25NOktxFzG1V2XAKJfZKQyXW0ALUta+/8IMM0JTkSZzRyNAtrz8G+qfYe7LEd/O+6DabXievsuHERnha12Jc7XeD2wT5Dx+vCidiO+VUDjSTpvSW0DzBw0W1K2V/VTSE8aULZ88MhBcUEzL4AK8kHvJjXPc/j2Vk/Hvei48h4qiitOFGgEmCZ/IDfj0rk= X-MS-TrafficTypeDiagnostic: BN3PR03MB2260: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123561025)(20161123565025)(20161123556025)(20161123563025)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2260; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2260; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2260; 4:P8wK/fkPiZJcxv1DJspuBpDNVKkDoVVqftCrsO32vg7RTRX2IDPq81Q7XDwGkmJL4KztZ5Pj9IB5IGuab2A0ZKXbi5IcwJNs3YSNtRrAjzbPMKTa+yVfdARi6anPL6zeaXUkCaSJS1KRJEPKLUMbpoIwbzzUQItL1V5dNcYOVvsuJnL8ZwpjdyFKYho+iUN9sdoGW9lfQvSK0En1yWSWNgb7Qw7bR+yKPfiEkrdG1Fs2SVBaPeXhBlCkuQFdLb6KRWCY4nqjvJtvM34HGi5ygYLdPa53IJf9aW55uE4KnDCofyfqTbGVr2Oe7Y7Bv9Bs+Wt5ZU85xQWLIph456E41Q== X-Forefront-PRVS: 04004D94E2 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjNQUjAzTUIyMjYwOzIzOjQwVWF3MGFFYyt6QktKeWE0eUpwb2d0NDYv?= =?utf-8?B?bnhnclVuZUM1Zm1jbGpFUHUrSlVFRUg3bUUvUUEweGw4WXBjMWQvbmU5b3U3?= =?utf-8?B?bVpkbjNDN3VKVUJjRnQrblBibWFuK25JTm5qR2VGcytUYkc0V0pwRnllTUZK?= =?utf-8?B?NGMxR3JrM3hlS0lsRzlpZE9mcERoUjFJeTlnV0ZPVHdiTjlzcjVicktXUFBL?= =?utf-8?B?Ti91Q3prVVdZb0NLR21VMTRVa25OSGtKSjhtWE1VNDRsY2ZyQWZOMGZqTWVH?= =?utf-8?B?VVE0c1kyMU9NQlQ1Uk5UUmlDVEtxdlozbHdMUkgvbTl2OVFJcE0raUp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UPtcWEaFZcyvTZCR0ZTefxR7ekDj01HuQId10q2mpqCQEzvmMx67ArdQWv54y59wOCChciHaXljBTYP8G7sxM76AXDR68z2lQ0nyhVjvXbtsnsR6PCnzQHIucQLvbNAgQ9BSspDIi5Rcv6oqxsutWP7jowR7qej9e04kHiFBET2sNAhaeGo7jHpQg8lEZHdwTxx6sHfurgKh4/K588AmQ37jNo9pje4A5X4i6m95ya4y2yIIUFUfodoKBTO+HcGsfyqK0+VXP+pO4E1fgNUt4H53kTMCpILqgwXpXSOD5D2Tg8H4CJlVkQYGzSw==; 5:LCiY4YZ/AJqU9FKA+suzK5KJM86RRPa1ZpI5kjG2qAg8bgeTIp8ocggoR2yefaaxqxXgdFBtJk/Qpt73rJ7ER1OhqDlgEuQU1zVJJD9L+5pEsjVWjsMSrx+ZOFEsASQe+dNeTUiCJ90/z3yy8cS8cg==; 24:OcrQ7cE7VNXnbvMkg1HPIL/VYtYjEJJgfCp1USqV0OfuexVie/PwkOdAL+UDDBjSf5oijl8MRpWr231OIGTNWYu5rExq1go5eyqEV6oUVVU=; 7:P7RL6oTbO66zYIdg4cnmZ1E57N0wwN3TQ3NB1NqZ+BMTNJeGEC3TvMdpZDr7HwbQ0UW86ZFhZeUj7q1/vdxxqA8E+U4+p+XQN8WueuCZSFLAuh6WcgmvbfMYoBzSe9posQp/P+TfAKCgQ4NxYGSfOEVMSs41htj5RHslUmU4yCmi4Ol5nAD76md4s4frKiLlkco91PxmnYQVwsdQ9M4q27DD4e8MnvIRWDg8OsDhu+Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 06:45:04.8597 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2260 Subject: Re: [dpdk-dev] [PATCH] crypto/openssl: performance improvements 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: , X-List-Received-Date: Tue, 15 Aug 2017 06:45:08 -0000 On 8/14/2017 7:47 PM, De Lara Guarch, Pablo wrote: > Hi Akhil, > >> -----Original Message----- >> From: Akhil Goyal [mailto:akhil.goyal@nxp.com] >> Sent: Friday, July 28, 2017 12:08 PM >> To: dev@dpdk.org; Doherty, Declan >> Cc: De Lara Guarch, Pablo ; >> hemant.agrawal@nxp.com; Akhil Goyal >> Subject: [PATCH] crypto/openssl: performance improvements >> >> key and algo are added in the openssl ctx during session initialization >> instead of adding it for each packet. >> >> Also in case of HMAC the openssl APIs HMAC_XXX give better performance >> for all HMAC cases. >> >> Signed-off-by: Akhil Goyal > > Thanks for the patch, nice optimization! > Could you split this into two patches, as you are doing two different things here? > One for the first sentence and another one for the second sentence. > Also, as you do that, could you rename the title to be more explicit? > Like: crypto/openssl: initialize cipher key at session init > > Finally, I was looking at GCM, and I think it could benefit from this. > I will send a separate patch for it, unless you want to integrate it in this patchset yourself. > Ok I would split the patches. For GCM I will try to incorporate in this patchset, if I get some performance improvement, or I would send a different patch later if some issue comes. Thanks, Akhil