From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id 11E22FA87 for ; Wed, 18 Jan 2017 16:24:05 +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=QQ+LxpEW5JxkqiySCd25WXFqiACnhao6eVM5Yqdz1kU=; b=UdJZM9+P0VXMIejvC06KWyKEwOayJn7L9zr/50OSQroA0td+9X5PY4n2e2eTBkwny/iYN9bLsqdlYMkwHirghaseAKEO1HHLlC5Zxi0sOsltfshT/ei9X7d+ReoTT8YWGv7cWXL1M7kxJffyA8ykn4XPIgWoT6bDN5+H0QzaWYA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.167.185.94) by BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 15:23:58 +0000 Date: Wed, 18 Jan 2017 20:53:39 +0530 From: Jerin Jacob To: CC: , , , , Message-ID: <20170118152337.GA10376@localhost.localdomain> References: <1484668143-32522-3-git-send-email-zbigniew.bodek@caviumnetworks.com> <1484749650-24867-1-git-send-email-zbigniew.bodek@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1484749650-24867-1-git-send-email-zbigniew.bodek@caviumnetworks.com> User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.167.185.94] X-ClientProxiedBy: BM1PR01CA0059.INDPRD01.PROD.OUTLOOK.COM (10.163.199.31) To BY1PR0701MB1723.namprd07.prod.outlook.com (10.162.111.142) X-MS-Office365-Filtering-Correlation-Id: ae61efe3-c994-40cc-0a0b-08d43fb60802 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 3:SBh7Uhrb31snoVpVYQp2tttLSd+hqR+G2MaWw9RULkMVOC1E4Rms65GwbLAlHblmkr7Ows+5IXXdiv/P37FyNY/pcJdbFZZOq5rJnl3PEA4z67ybPKVSmuqfsqKr4zAXgafQx2yZyVmNmUvwhRa88H2QyXCBL2VdTNZvfSy2eCpj+q7l1JrnSN6HM8GeJ92bDY17h7p26C1gZPf6ftivw6y62iv+q+BOQDe3lr4enVGY+JLHnzybwUvV4jJCvgNwi5mezR1zQbPqc7F7A4VEnA== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 25:yBsyVKXkM+GuZ7QWIKWJByosJNRexJmW0S5eDspC09xxzisCuMvpawXGr6eUxEPvE0gTeTi/hIZRVEyBpgI5VMq/53cLnZ7VcjbDpHp+qZbL7CSR54sl/0mJbdMkHS3LOPFwh4K93X/QdSpuUCdfRzpNiLMT8Uc+llFuAVzr7fFlW+O+R7KwDE5W82qUmtIhs5fDGFNPSTsMA50GYz9toLTHtxt0wCAPNiN3TVtz73TzRBw/+NsAyRLVBAsbH6xtW0b0YhSyHGKQZUJvxP/+jxyiOkZ3nV2MqNv+Gk6DZcGPzV2cjuQf3oC+CHnKfohjd4naBeYC5FWwzNEVIXHKxNT6d8w5aeqqG4kWcYf1tNSvONveHLrkFia0aYHwD7gfg8Va4xjaO8sZz87e03bPRzbwtxTc5jpffCO7E7gxN155AkYQvFRdXCg55JLDvuenm5RdpiC+XIQe19ZAmXgzmlgjokQtXajdrqv81werGBVrXxB3uYbIaE+c9fgl1t9meCfYfWzuIhpoAW2EQoyZnfB97zePb0UmoJnxDUSC/YGraxG7HjI8FnvHoEG5ShyZOC+H5Sq3Q35c2fBinpeLh2u34QSgX5/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6Fehg9xerLo+6erxnPSaV+N51emVsEDCSpvj5TZdkIKpp16Pe6bxcM23SchVSfBkyHQflvvFxJ5Wiz8Yo+3w0CFjlKrgTwa7VPreWhh24iKxmPGSBlIe9T0/dtZVTX//tx49ZOol8cSE43IWb4bFrABNsh16UDbKo= 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)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(6072148); SRVR:BY1PR0701MB1723; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1723; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1723; 4:boZZ4YwC78C0oZf+n8n9tvSl6gjTZJTXDW0iF+CYb5ntQE5TD0LuBg7uVnxETPvpeTsbMjIBWTe+ZdWwep9AJlwPCB8FlwKXgt0Q2ZZ0fIFuPotFzE64eRmODYWGX9rRb5UbwDzZyCp/m0IypsJUwC5BK7wGVCYpBQibeTCXYNRtQuLZbHTMZoJqFGSe0ELWjbPM9lYYXZfWIGaFm061y1PUrWqbeIaF6DQsnPi57YvIZ2oIYbtBdlAXS2n76TLeeX64EoPEKUXoVjZ2tcjExOjQQoJGcmS+r8CXqNjJKf82tJUhjlY2luZ7dDaWz3H031/lqvg5MXDX+ZQkZvh9KfNbT4KYDpWK+LOBaH8q6pnrtfcmIHuIDE9W4JXK09qEg6AU5Cm20JAR3IAfdGYII2kHtKmZEw8O/FdYDXOj9EP198Na9iUROw/MO88tYaCKGv4A+HKxhMJS4C29Qz3Lxe0hziUYOvBEim7zBN3EqV6SIPfY13zwYrUeSn+fHRREOSlpC7s0TfD5W5iktsmamg5qpKlw38LjQTd4WyQSBB2umUtJ0/9xw30xAx4iwPaw1UajvD0yXY0+hc8iOKkRlvB7ZrA+Wy3Xw9JOoEvUB+EFPqi8JSCQE2mbQVf0aYut X-Forefront-PRVS: 01917B1794 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(199003)(24454002)(189002)(1076002)(92566002)(47776003)(189998001)(42186005)(7736002)(66066001)(305945005)(105586002)(5660300001)(50466002)(4326007)(106356001)(53936002)(4001350100001)(110136003)(2950100002)(54356999)(76176999)(101416001)(97736004)(6636002)(6666003)(9686003)(50986999)(42882006)(6862003)(38730400001)(8676002)(83506001)(68736007)(97756001)(8656002)(54906002)(55016002)(6306002)(23726003)(6506006)(81166006)(33656002)(6116002)(81156014)(229853002)(2906002)(61506002)(25786008)(575784001)(2351001)(46406003)(3846002)(7099028)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1723; 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; BY1PR0701MB1723; 23:Pjn4NftxjpwDMyDJ/23yyPJVQ9b3+/pBcSQuVCV?= =?us-ascii?Q?LkjRsScK+mEGA0NVik+8xB5G4Pa5v5uz3XKbVXey2apG20IT6xz7XePAlw0Y?= =?us-ascii?Q?TVv4xFndoGDOF91edAWFS8UaNRhr3YiVxGs9vPMLImjKsQ0swvFg8y+sDq+c?= =?us-ascii?Q?zwSZ+50HO175onNVY/sG5uKVh093LXMQzmgf4BXx61a64GtAqB3AbpwjkYoK?= =?us-ascii?Q?DDGrwKrGJ/7WLoY44VkFVy3G4zYxfSn917t4/RR+ai5YgJGnTaRygI5abco9?= =?us-ascii?Q?jPPkss0OSDSdmAmU7knvbTAj/N+X0V6an5vWa9DkG3pfpV+mvSH85Y9mAsI8?= =?us-ascii?Q?V+OA+W4b0MfwWlRqASqgX7qkC5+XoWOpwMVtBkOq0YdkXLwM+QV8s5KGOVgT?= =?us-ascii?Q?tFHtbxILIkrXh8jjpaQGwL2KR7/mj888SL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Hvw/tYe1BOc3ySAeuB0GUHx7Kz7f4q/tnI1llX80NftNfYo55qcdO4hAoxqXFtV4zMwTc+qsCXWCdcl3t7VpwSkGi3uK4Cp+cAeVgStdK2YJjvPr9XlBkvUcbfABy1nFES9Msu69UoR7Ot7l8rhBfqTN12PehsRQl30eJckyGaIzzLRTxfvZC458txj73INQimkXCzj2tUM5lLMRNVW6LgZUPxyu9NrnryPJddsCclaHCSdihTIWoGAPY6oRMDJWVHrjedlm6J2mxDYT7YfFDKaWDJt5wHialx275oKgjKbII/2sS+Bh8Adgi2szQEAaBuOqtxOkY6XRYAjFe+7kP1E+0ZxwYrVug2nPaC0G3gbr+wnQgg4qm0Qp5UFcnqTPCY9kQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 15:23:58.2710 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1723 Subject: Re: [dpdk-dev] [PATCH v5 0/7] 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: Wed, 18 Jan 2017 15:24:06 -0000 On Wed, Jan 18, 2017 at 03:27:23PM +0100, 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. > 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 > > CPU compatibility with this virtual device > is detected in run-time and virtual crypto > device will not be created if CPU doesn't > provide AES, SHA1, SHA2 and NEON. > > The functionality and performance of this > code can be tested using generic test application > with the following commands: > * cryptodev_sw_armv8_autotest > * cryptodev_sw_armv8_perftest > New test vectors and cases have been added > to the general pool. In particular SHA1 and > SHA256 HMAC for short cases were introduced. > This is because low-level ARM assembly code > is using different code paths for long and > short data sets, so in order to test the > mentioned driver correctly, two different > data sets need to be provided. > > --- > > v5: > * Add user defined name initializing parameter > (according to b8a661f15eb8) > * Align with the current next-crypto master branch > * Another changes to commit logs Tested-by: Jerin Jacob dpdk-crypto-next: changeset: 0f0099d86e9b0b0865837b70a09018b0e4bd8411 https://github.com/caviumnetworks/armv8_crypto.git changeset: 71258fb9fe100d411a53a247040e675fbae45e63