From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v2 03/12] crypto/armv8: Add core crypto operations for ARMv8 Date: Wed, 7 Dec 2016 02:48:02 +0530 Message-ID: <20161206211802.GA18108@localhost.localdomain> References: <1480851219-45071-1-git-send-email-zbigniew.bodek@caviumnetworks.com> <1481077985-4224-1-git-send-email-zbigniew.bodek@caviumnetworks.com> <1481077985-4224-4-git-send-email-zbigniew.bodek@caviumnetworks.com> <370264788.TNfU8e7VBG@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , , , Emery Davis To: Thomas Monjalon Return-path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0064.outbound.protection.outlook.com [104.47.40.64]) by dpdk.org (Postfix) with ESMTP id 7C27432A5 for ; Tue, 6 Dec 2016 22:18:09 +0100 (CET) Content-Disposition: inline In-Reply-To: <370264788.TNfU8e7VBG@xps13> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. 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 %