From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0053.outbound.protection.outlook.com [104.47.38.53]) by dpdk.org (Postfix) with ESMTP id 45F851094 for ; Mon, 16 Jan 2017 09:02:49 +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=FPGdqK2ZWi2s5PDgQhLX82Z/oQThSmRq4G2d+pOi9I4=; b=SI6heS0jaf6VS27/29F4zBW18jmqytiHC87XxIN6ubutAw0UZG4Bobw6oV4qwbsiIUmCWLz69VoDltEfAxZo7mz7aOGGC5gPxjsoH779eg1FGW8zHtiWENlCw/O1wpq9Vwp/BmKDn0+Ok99ui6OyjoypuOEb2vcKfyrG+oyQ2uE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (14.140.2.178) by BN3PR0701MB1718.namprd07.prod.outlook.com (10.163.39.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 08:02:44 +0000 Date: Mon, 16 Jan 2017 13:32:25 +0530 From: Jerin Jacob To: Hemant Agrawal CC: Zbigniew Bodek , "dev@dpdk.org" , "pablo.de.lara.guarch@intel.com" , "declan.doherty@intel.com" Message-ID: <20170116080224.GA32727@localhost.localdomain> References: <1481077985-4224-2-git-send-email-zbigniew.bodek@caviumnetworks.com> <1483551207-18236-1-git-send-email-zbigniew.bodek@caviumnetworks.com> <82638aad-780d-1909-6f3f-f46d0fcb9f0f@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: PN1PR01CA0051.INDPRD01.PROD.OUTLOOK.COM (10.164.136.151) To BN3PR0701MB1718.namprd07.prod.outlook.com (10.163.39.17) X-MS-Office365-Filtering-Correlation-Id: bb73d499-762e-4ba2-7def-08d43de60f1a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1718; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 3:8Bz3rMTqqr8Syc++ZOHvmHGkW9c3fdw+CRzAD3KreQFIPCCjMF+cHl3rZx4Ai5MPPhQJc6FGUwexgWy6mhs6LENP5LRGIBPfnpe2Ct8uP5JXqdEnxOu07o1jH5UaVbvreJWAX7WllL39ccAG9Uz/TsUT47F6xYmmQGQ3R5QLxO3WvbJxnclLEO3Z5Xqwq35B5VVeOcmWDEQQBtGK+P/tcptm+fchkOU9Kroe2+rvL/slLvD+F33AYr80zUNITktDDh7rsZkDueSAdTVD2S2rOA==; 25:jibrilO0CTvd5aie6cZHvbBKgs8p5nHv/RwRfOE/nYE5GtAiF9KMI7RObNLJwuRnyw8xe0Rx7w55KdghAZ5dYKlNySQWFhmJ1BF74wrvGyQJnUKZxOFCdaOZO2dmPab/vaJMyfZVpoRboymawLjwxursYczS+d26eNqYceAoyUp8UpeLNqN6sHVoDLmMiv2xhh3w4GPY8pkyGJircZNrm3shrDrxrZ/OT5R9RKS25OePrmATJqd8VMCUQmY7oAiOEaPlSLzLrxw0UH97WbioSt5cTu2Cw/Viq/oHvcZbbBukp3Roek0ku4KIDbKCy4sXh0FB8nBaN/SU9x8lShTPqFmJYJNA30GVcB6LX2uyjIUxBXtNBpz7CrK63wPTqoYKrjsUHvSW5mIucDnlwGB/k52ZXBibEeoAwJsoaVfnRjyGA4AsXRfcDOqC5ZV3H7rx0h42CfLCptqNF1vtuMdv6g== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 31:Wgv32axUwNCJ8igcE5TXIrOZtOGKe0S50QJ6VzHRq4IKEC3H46l98oVMt7R25M5HzdT1w2sfcJx5LF1ytIywjEHFo0hhowccnK4KragQ+7EfCDbCKbrJavfEwAhshrgakNXYkvDWRTyupr1av6DljQkE+J4Lfl4aueeUpcSi7BMz3CEZk2HsP96LMjiMWV3e/nZoIK87szAxgZ/mA0tCMn6jgo9cc19Zd0fFSZRRVcCOgWsQyeOkGCMn6S3uxtdH; 20:yJ6fglE5PaQjpHbN85ZU8waqnI0U6yFSiLRm+E+tj74pvMSpkk90b/rYEovSW1UhFyXIai5Yt67ecYl0Qr4IZH8fJAO4hIpXEWhsLyfIfnzBEKDUD+IDEp+JCywt+gmtGwNAxB7lTOAHDVChtzCuWOdlezxOhvxfjonqTzW58oituLq8KGWDaWSpNYDwAdyepodUcF0ePtI3PU5QjXV3dD8mddjZxftpoobS0EAC3YBfEm0OOtrguk4d8Xu6Yfk1vLDHeL4JJjqbBkkvZz4/cj4Pq7YxLqbBPCgiBW8jZdEvanVr1UNhIzgqqy6PKjitdOxui9wI4Sw8p/d8bvYeQjEQcFIG+e39vMamaGVGpxaT1JT9FwUKqxWYYWIT9QT7VB504jOvhkR8ZFOLsWEy/+YqLfiUbdd49Z4d6cpvdGdujlxbqHtn0E/iQSlR251/lnjRpyOdggm8+dPSUK/lEG1tN5GgmRbRCZiMEPh7TUwvnP1YFjmaPJFX/4U8VuVxbfjxbkpzhvBvv+44rtDntbEtQGp46wV5ljGAejCfJsnucgsZmALhVYgCY9/ki/zSTnOnuzkshlyduCwnlNvWCwqFyZksjEN5Zsqtu9ziHnI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:BN3PR0701MB1718; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1718; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 4:YItbdNTNxgJ3kaVIutKMkBIvep7zojk1A3PYeoiWz/Bb3iT3JVtE26TQB6tl2M1zpAlHHP0m0o1jiOife+u2c2DM3HNHCMCsHO/Su/Zm+0qY0kM81neHwI1u/rW7SrCNKFi2uR+vm57/oQdIGA40E4Uz80ck5JfejJ88TIs0B4t+AlYOVi2rJyzQJC/VqRC+5Lu5kaTiP0eP7ksD5jCR7AoGjMQXaoecD1hLzM/6sB2ernsWT5UCkqjlfx7WtzFKomHMJSsOrDNh6a1ITHW0HalSi4+fonmI1+TvDN1L2TLj803Tn8VM9WtOVCPcdVyLNFAu7MfqUuohVBPL6pFw7rME15Jy/7T85cKPe90cPQtra9uLWVtXnXy+2H1FkEXVaG0hBdC9Njzn877ClucRcIiMy71iPbnGAzYrI+nN1M+LNiPh3kLnWCWkjgcukJ2vYINQZSkrZGwzaI9HhFt+EoqzG2BCGWyLg5qHS3T+6Z4/XmYZiBrG6t6SKf781BTQlunaVpYQI+IWuo6qb9fUhfzs6er5m/8ey4uDpNb0Tzn8KWDveylRzP19TKb1AAHzDUyDCLfciZ2yk3UTFjw5L90UgmFY3x7r4N+xr2t4bp7NbJ75JCca36HXm8URkZer X-Forefront-PRVS: 01894AD3B8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(39450400003)(24454002)(13464003)(199003)(51914003)(377454003)(189002)(81166006)(6116002)(3846002)(81156014)(105586002)(6666003)(2950100002)(50466002)(42186005)(106356001)(2906002)(23726003)(8676002)(27001)(83506001)(4326007)(92566002)(1076002)(4001350100001)(7736002)(97756001)(50986999)(54906002)(76176999)(229853002)(38730400001)(305945005)(97736004)(66066001)(47776003)(46406003)(68736007)(9686003)(42882006)(54356999)(189998001)(5660300001)(6916009)(61506002)(110136003)(55016002)(6306002)(8656002)(101416001)(25786008)(6506006)(33656002)(5009440100003)(93886004)(7099028)(110426004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1718; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; BN3PR0701MB1718; 23:PMvQboIl6qm/0zVrvEPx0OBPjx5ydBCxtxHBItV?= =?us-ascii?Q?t+G+3r84tWHa+HK+Ro/W3qdIGEoLX+96dziTVLHwbmXVyIySXDSCF7nYljxL?= =?us-ascii?Q?yendCngAyd6g5qmoSLqN4OtcgvWGcWM5rlHBm58OPTuKD9WA0CAKnT9ddMpo?= =?us-ascii?Q?m5Gp+Pu1b3MP+DG55XaW0x8mHvLlAAbnhoclnxgAH4e1ORRaUrAY9XfpYOm7?= =?us-ascii?Q?6U3tQyQc9S/mKo+P02trf7vTlpwfOjzLwLefftJzMC7Hh7jzdfh1QWM73I8i?= =?us-ascii?Q?YyAHRhtvkADroQjqubZQ7M/29pQ1DBMi3Qd5WM4/EA0NHnG5GIXm7SBmL8uv?= =?us-ascii?Q?rDDLdo+ss3xAh3g/iZGu8EEzd9H3PpHmOliqDdWv18ddeMn+JoRQh82Ko4iE?= =?us-ascii?Q?FScge8Nr3zMAcaw39wrYI8laNZtUGEIUvpBy5wvy6Ija8Nrne2zSNBdgJBNF?= =?us-ascii?Q?sbzn5AR/IDF4YwpR+sk7fs6ng5a3EuacLHCVIrX8ekAjAwpdpgy63bv5t2tq?= =?us-ascii?Q?7Dzew9Tej0C29ALGrOwmuMGMXYUnO5tJGgfJspp7YJXJrIKmi/U/LnlCrcMa?= =?us-ascii?Q?QU60KotP84CuPy4GQJisgyu+k2jDjoSq8wgXpaz1PS2CRnoqJnIeHmbRq7/J?= =?us-ascii?Q?davkeKSLAlWa6rVQmLMeYkOuJkd5bsC1JaB4kAVkI3mh+HwganYftcGYXaoz?= =?us-ascii?Q?nQBYOkBcOprp/SbHJ7MHJu5Z8vVsek0Fc+FgNyZ05BvWX1NykQN6v58RYD8I?= =?us-ascii?Q?i//Na750Ea4pKiyTGdQaiVywO7LnlGGx/A7Gxjr/vQ5l4WXXqfGglYlsis9t?= =?us-ascii?Q?WQuFkGCW7pNVB3BCycXeFAzRUUCCnDjJmoGNR3WiP/jZCg1vuxEYWVApxySU?= =?us-ascii?Q?08hGMzvmLvoA+54Y0e/iZzDEI5dhsq0qv2OxmjJ5zJtB9AJ9eCdSVwtJr35k?= =?us-ascii?Q?zvJYPtemXLtNfX1gdWRBI65H09V/wyJvSTt4D0B73osakfP0EuoEtqOjdqov?= =?us-ascii?Q?rh5zzz7HQgsCLu5UI8TYJeYG1u2B8sThghvPYsIswf2PgvNU1ZZddlE8Lr/z?= =?us-ascii?Q?JgLgvmnLdVLAeOjn8gT1OSz3FHxh6k5U82G6uhX/6Dsr0Nz03RaeVCSbHmrM?= =?us-ascii?Q?FALHccFyV7s4iOpp79+G09Ex65zZHE7kfhsyQOaGjBwO8ub4kHhpr5tpPNGo?= =?us-ascii?Q?II0BC/bCEJNzAOE6q6bYMNX1dLfySjMeInbhuNoLDZ0ocw7/nwI0vF9AP7FP?= =?us-ascii?Q?oofTvJwvCq/KriGafQYeDtCoy0N7m7EN26kUk5z2V1tR3m7x2DZ2NfmbeGON?= =?us-ascii?Q?NId4tdk8sj0T6QXzGevNoPh7LVCRhC5fDXdFwTznuJfKXsLuunZqGjuw88+G?= =?us-ascii?Q?29IlB3hYBGWhuzpF7yRcgAxZor8R8XUlPnG+cqVuYZ9hcnsY06lcqpmRuMLC?= =?us-ascii?Q?Zasldqwed3uEO49tnHXuBd5ZCUfO+2/NC52nGlD5SQz496ajpvifiKsDhenH?= =?us-ascii?Q?AhiLi08qkZ81XFQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1718; 6:JrTunileW5kpLuen/Gd+B+wA97ALDOVcWGSXEvLlU7jBe4NB43SQpLbiWG5mZpftqMuW6N5oAcVWmvkYrAxI1n/9gaoudbQSXK96hEQRsDpXL7TPodTKlQZCxz3HejrKubQkNS6FZ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vHcd5PHHtXIBduI1g4z/wykWNrOPWao6HvynECUw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2017 08:02:44.7730 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1718 Subject: Re: [dpdk-dev] [PATCH v3 0/8] Add crypto PMD optimized 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: Mon, 16 Jan 2017 08:02:49 -0000 On Mon, Jan 16, 2017 at 06:57:12AM +0000, Hemant Agrawal wrote: > Hi Zbigniew, > > > > -----Original Message----- > > From: Zbigniew Bodek [mailto:zbigniew.bodek@caviumnetworks.com] > > Subject: Re: [PATCH v3 0/8] Add crypto PMD optimized for ARMv8 > > On 13.01.2017 09:07, Hemant Agrawal wrote: > > > On 1/4/2017 11:03 PM, zbigniew.bodek@caviumnetworks.com wrote: > > >> From: Zbigniew Bodek > > >> > > >> Introduce crypto poll mode driver using ARMv8 cryptographic > > >> extensions. This PMD is optimized to provide performance boost for > > >> chained crypto operations processing, such as: > > >> * encryption + HMAC generation > > >> * decryption + HMAC validation. > > >> In particular, cipher only or hash only operations are not provided. > > > > > > Do you have a plan to add the crypto only, auth/hash only support into > > > this driver? > > > > OpenSSL driver is already implementing that and it is optimized for ARMv8. > > > [Hemant] Agreed that openSSL driver implement it, however it will make the application little complex to initiates both driver instances and then choose the driver based on the algorithm. We started with chained crypto as primary data-plane use-case like IPSec need the chained operation. Agreed on single driver for both chained and non chained. Feel free to contribute. > > > > Also, do you plan to add additional cases w.r.t supported by other > > > crypto driver? > > > > We may do it in the future but this depends on our resource availability. > > > > > >> Performance gain can be observed in tests against OpenSSL PMD which > > >> also uses ARM crypto extensions for packets processing. > > >> > > >> Exemplary crypto performance tests comparison: > > >> > > >> cipher_hash. cipher algo: AES_CBC > > >> auth algo: SHA1_HMAC cipher key size=16. > > >> burst_size: 64 ops > > >> > > >> ARMv8 PMD improvement over OpenSSL PMD (Optimized for ARMv8 cipher > > >> only and hash only cases): > > >> > > >> 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 % > > >> > > >> The driver currently supports AES-128-CBC in combination with: SHA256 > > >> HMAC and SHA1 HMAC. > > >> The core crypto functionality of this driver is provided by the > > >> external armv8_crypto library that can be downloaded from the Cavium > > >> repository: > > >> https://github.com/caviumnetworks/armv8_crypto > > >> > [Hemant] Thanks for the good work. > Is it possible to get it hosted on a standard and neutral place? E.g. Linaro > It will make it easier for other ARM vendors to contribute. > Sure. We are OK to host any place you suggest. This was one of the reasons why I thought of having asm code in driver/crypto/armv8 itself. But maintainers had a different view on it.