From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0043.outbound.protection.outlook.com [104.47.32.43]) by dpdk.org (Postfix) with ESMTP id A30E62B8C for ; Tue, 6 Dec 2016 23:05:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H4sO94+svPghIxkcs2lracpOONWz3WtBeKXn/toMCTg=; b=QfM+4mR5eQAmlWbJMQ27OzWD8lKskjMhmrEg3Nue+h4J0McAmSpxi3aVpR9xKMH70irapsrtfhHPNHNwhQx/pBeRzEwcu5NW4JagcfN/eE1hs+F0s3suj7WECGpcCjXNNcB6UK02Ooai0Wx3QLdVkKUoGDh4KG2P+Bln0bkJmWk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (50.233.148.156) by BN3PR0701MB1717.namprd07.prod.outlook.com (10.163.39.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.693.12; Tue, 6 Dec 2016 22:05:07 +0000 Date: Wed, 7 Dec 2016 03:35:02 +0530 From: Jerin Jacob To: Thomas Monjalon CC: , , , Emery Davis Message-ID: <20161206220502.GA23846@localhost.localdomain> References: <1480851219-45071-1-git-send-email-zbigniew.bodek@caviumnetworks.com> <370264788.TNfU8e7VBG@xps13> <20161206211802.GA18108@localhost.localdomain> <6384628.bAnifqqFcF@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <6384628.bAnifqqFcF@xps13> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR01CA0024.prod.exchangelabs.com (10.168.201.162) To BN3PR0701MB1717.namprd07.prod.outlook.com (10.163.39.16) X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 2:BTuBlGKvENTNCBbOkQNxREIFfstT8tlANEAd9gn5Uxmdiw0+3hM2f6M+tBPt363wqC1M3KFDlhXJ8IDi1gopCh2Ndy4yZahP/Qu9mYt7h5Z19RJ0Bc7iE9ncDxWRLuFNV/kw8IJMH/R/tkt69IY4sygPCD09UAc8+gs4aNepC30=; 3:0LPiC0nXz22Xit4h1wI3fpUEWKoxEQtiwr7yywMPy+W42KkzWZKCETJ63tzsOC7U4MS5mEyTolXZKaJ+B6T4lCSCTN2UWr+5mOi/wEtaU7PG5bt2urti7WEVc6Ewe90nLQKCoQbVR9pqG2CPnoTc1DYE5Eh4y2PRIqwMfy9iCzs= X-MS-Office365-Filtering-Correlation-Id: 0c274e97-6aa9-4ca1-b35b-08d41e23f0e6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1717; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 25:E7A5zaZivQ1CV2mlsfUeh+XKDNgz2PVZgXKPe5qSeYQfNLAcsldvMeqbtRzFzgi+tR9jdHfnp1XKCr7NJjRue1R3TrwtqThrdbPBxpTxQlrJd3OYY8+gaBjDgV6f5ksuYyA6s/EJ9LpEGXumwdzXSWVtd5FG+l7lvfPL4eOXwseJu5DscdxmCNhnuEsl2NtzdJSzO9SzKk38+mI8MkcYfb6LEYwPRq9CKOrjoDN1ltatBgman0Le42ED8l9Ao7XskI3zEahpXuwAf2xQndsq9lysCSHs7ercJ950s4PiO5CpB/H1A6PIDe2vWxuOrNklJLOpZ5TUpcBTxr9zJzzzjQUfWomNPgI8wuNz3vLDoWlazbOU3YmgFJm+goahlvY9+/kK3FzYS1P9sJQQsvneUDrWOToBuXoO6xaxNb3Nc6dknAb7LdkoDR+qmuR4aFQEQEPK2dpKSu73ahHbyvqcMT96gK2N1IplY37D/vB9L0F2+ej5Cig8wsCla7UjwcBUepyqf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+3qU/1NVMnZ/cRtFE2bu0zP/MilsAB5LLn1x7QRQrONyuFEERCH8lnwmHC2tSipA29Bavz39ZHBsfzh1AIOGcDVT/ooR9zG4HjCAHxpRhPg7/+tEnu/+E+ZMkJnyVST27ATbKzGmyJBEN34TR/OR2ZoL7cE+1aCpxw+jD3/c9nA4k+BaV6I= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(6072148); SRVR:BN3PR0701MB1717; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1717; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 4:2CJA35MgsX07D0NunaMiBkTT8McY0lLQB6XsmzfDBFtZUS6O7SkPUi1ODMTyzjeOzctp4btvequG9GGMycXuy2qhZCpEsYOObt6iOCsAhWI0SvqV9z7DEfb7JpRj9gOLhYTO4Mr6RXwfCY6ILwhe3j6qJp95NRUvpPfyXola34Mb87Jnu6DwsdnAshMpOOdtWI5WcOWkT42QrkpQUwadnfriwfQ683rcfVHXdvzH6hnntWnqFESDF2g7GpR7GSVTipNcJ/5S+EbWUTDjyTRU+TwF6uNyBbNyhsCyg2szI40epr9CoYz50MAkC7ZT46fyd3YbzhlXYB7O+g+BWf63lVcmbHv6cLjt/8/EHmxkkW7qofBUn2vhO2WWIMKb9iSqe6mT2UDqwE6ICnlyL6oO9IApGZCFdMsU8sTML4hV2iZgcheC/WkvAY6FC97QNAcvUew5XPyjO4krWPpUwp1JusCt6KaFbuw166R9askQMy3GIsH7AqHmoCHeyWE6a8q8gh7jW1wLPvQ07q0ROd+gdzwGFZ0Vqfxh8cu/HTKEvMzReQuL1ot3Zug0wC7bgUox84oIN9+j4h0mwMKQeSNPLQ== X-Forefront-PRVS: 01480965DA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(377424004)(199003)(24454002)(4001430100002)(42186005)(54356999)(229853002)(92566002)(6506006)(39410400001)(189998001)(107886002)(101416001)(47776003)(4001350100001)(93886004)(46406003)(66066001)(7736002)(50986999)(6916009)(97756001)(76176999)(6116002)(9686002)(23726003)(3846002)(105586002)(68736007)(39850400001)(33656002)(38730400001)(733004)(4326007)(106356001)(50466002)(97736004)(6666003)(2950100002)(5660300001)(1076002)(8676002)(81156014)(7846002)(2906002)(39450400002)(110136003)(42882006)(61506002)(83506001)(81166006)(39840400001)(305945005)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1717; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1717; 23:d/aECoBmM2GIeA109XqQvqGSzTMhsIT6UDC/Pqj?= =?us-ascii?Q?9gNntTuNf+NJa1Mn8XtSj6Yn+M+DziQGY+O59CGu2TXTrxJeJ7xp2ffoDRd2?= =?us-ascii?Q?/Htms6AStXj4MA0gbErg0Yiaf5d7983/stQy9cMJAVwEhNsEAFg9gdXMcC9E?= =?us-ascii?Q?uS9UPw79T6n6gvG0WahLceftaEU0n4AboR0ljjwMytF/954MN5CjG4xK8FqO?= =?us-ascii?Q?HdwXpz63JJvHSfrrLGb5OCD4gPmX9EszryZcGbXvfs8wC4pFD/ASFZR51s+i?= =?us-ascii?Q?6G8YSqYOoXLMjmcXz4dmgzKMD1xQs2x25lv2K4Kp9Dq140bNqdBhf0LpA1Yr?= =?us-ascii?Q?77CdrOmxqVa2XT/P6Rro3JsQgkRsNvvfaywHPc1YSYFYxgs0vte55pQK6qlC?= =?us-ascii?Q?XXIMBsnxL0qe81B4Fkb7w5G+noy58Yvu3r9AiGuon3XQhbU2x7M2ZiGYaDLo?= =?us-ascii?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vFlBzL0SccOPG+Xf?= =?us-ascii?Q?Rm36UjxliU10YNSmOi5gU+6lzs9Vg2y7bQZHWzPAwGNJ/xwQOiQnTSdjyYBn?= =?us-ascii?Q?fbKF94tfsOSszWVsm2DzxXTtTmkb2Ygn78A2LRH2KeeWqa/5AFYUG?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 6:H4N8N56FQx6i8A8GqA/x/xN8aHi3OsugGdNbKZDPBPxb/tYcQgOLOc7iDCzrWk/MC5TQKcfOqj++XP3eq20XI+11yuFPssDKY2b1yYvwlPz1eJ0eA25eyskZM62pN2XkKoP47iBEupsuarnsrwgvL0CqYicoW8TCafTeZiGRHCIxeoyi0enqnzuEmnwZxiYFEmGX7ieO1zNkyoYdB9xKXCNTubM1pkMHvecdYC2+Tj5IXfdgaKHMSc/guel2v+Hi06NxmVuJ7Ofn7nNMX2XHCEgB2Yw01AVtRgBDc7y66Cte+7asxgtelvZfpVxmFEliTq49iLE1jQjqkvd8hcMUUhRtO7UY4X3T7mKAVVEmBKg=; 5:kkoe2hFYYXhOzoDtJaV1yIupgZ9/YkRuvNl4RA+/CMsXsQtzgAz/E2akHhYf1XeYdl1Z3XpjVvXdiup9oyUTXkdP8hKUOwJFpogooytFi2uu8W7W8XK2AvXSAOPVXGxneyTbMUOv01flUHwWbMmXsR7YsJOEKtAsWi0EHASUNWw=; 24:1J67PZ2sev3UYXvzmVyYD4VQ/X9GW+50FmRzSrVDTd1g3OsU5rBs8Gq/KtatY1/FTNdJFUBzc4oySMsmXhtAR8kP/tyGVI2Gm9jsqcodzNs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1717; 7:44YmF/Biu/FfBdfW++eDuxS8Ye0bZYcQ8djHrBQTDui4HI/7HVGHo/TxFJ4aaxRJ//99CzjLFXAL1lSRfSryJyQMHa+kvNHYjFJKnjvwJXR9GCAz70/esbtHwHEybzVRuP634H/495Af8RpTDr2ynV9D6VYkn0pggKIDRzvrRpaoUkwSlaVH3i3M6IotPIhACznbpCY251Xy+AzzgygwPmQiXN0kN2MSOIeKgqRwCYbTDghIb2V/K1lqTpqCheh0pd1AIPPmOgJ5Hb7/I6rJkxCPpG0B3lqhT1edee+E+X9m5Wrw7M0p4XB4WbXN3ul1V9v8uxe4fHrrRglq1nUfc+sVKI/DV5il/c8yYGSTjS8= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2016 22:05:07.3046 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1717 Subject: Re: [dpdk-dev] [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8 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, 06 Dec 2016 22:05:11 -0000 On Tue, Dec 06, 2016 at 10:42:51PM +0100, Thomas Monjalon wrote: > 2016-12-07 02:48, Jerin Jacob: > > On Tue, Dec 06, 2016 at 09:29:25PM +0100, Thomas Monjalon wrote: > > > 2016-12-06 18:32, zbigniew.bodek@caviumnetworks.com: > > > > From: Zbigniew Bodek > > > > > > > > This patch adds core low-level crypto operations > > > > for ARMv8 processors. The assembly code is a base > > > > for an optimized PMD and is currently excluded > > > > from the build. > > > > > > It's a bit sad that you cannot achieve the same performance with > > > C code and a good compiler. > > > Have you tried it? How much is the difference? > > > > Like AES-NI on IA side(exposed as separate PMD in dpdk), > > armv8 has special dedicated instructions for crypto operation using SIMD. > > This patch is using the "dedicated" armv8 crypto instructions and SIMD > > operation to achieve better performance. > > It does not justify to have all the code in asm. Why ? if we can have separate dpdk pmd for AES-NI on IA . Why not for ARM? > > > We had compared with openssl implementation.Here is the performance > > improvement for chained crypto operations case WRT openssl pmd > > > > Buffer > > Size(B) OPS(M) Throughput(Gbps) > > 64 729 % 742 % > > 128 577 % 592 % > > 256 483 % 476 % > > 512 336 % 351 % > > 768 300 % 286 % > > 1024 263 % 250 % > > 1280 225 % 229 % > > 1536 214 % 213 % > > 1792 186 % 203 % > > 2048 200 % 193 % > > OK but what is the performance difference between this asm code > and a C equivalent? Do you you want compare against the scalar version of C code? its not even worth to think about it. The vector version will use dedicated armv8 instruction for crypto so its not portable anyway. We would like to asm code so that we can have better control on what we do and we cant rely compiler for that.