From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0065.outbound.protection.outlook.com [104.47.36.65]) by dpdk.org (Postfix) with ESMTP id 6BE5BDE0 for ; Fri, 12 May 2017 12:15:45 +0200 (CEST) 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=nZ3rmnrsYoKX5UtM+nZWUz5H+Ic3Uq68WCkla9UZY/U=; b=LTEf5jOMa4ckC4TYXXqBURoIcYBpm7K8z3POy9CMuJHOI6qnkPrX+eKMyaEY4jDO1WKkIUk99XlWsRrWPWLsCtBXZu1rMEnoHZ/RSboroONgVGfn7C0KG0ZcyMkBIYYoSVxHpjLWQmyvXsSWX+RWfZrqSETdbWWuWHiAc9WM/2U= Authentication-Results: caviumnetworks.com; dkim=none (message not signed) header.d=none;caviumnetworks.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from 1scrb-1.caveonetworks.com (50.233.148.156) by BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Fri, 12 May 2017 10:15:42 +0000 From: Ashwin Sekhar T K To: jerin.jacob@caviumnetworks.com, thomas@monjalon.net, viktorin@rehivetech.com, jianbo.liu@linaro.org, jasvinder.singh@intel.com Cc: dev@dpdk.org, Ashwin Sekhar T K Date: Fri, 12 May 2017 03:15:31 -0700 Message-Id: <20170512101535.7221-1-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170427140618.35897-1-ashwin.sekhar@caviumnetworks.com> References: <20170427140618.35897-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: MWHPR10CA0069.namprd10.prod.outlook.com (10.169.238.31) To BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65280800-28fa-4bc2-6ee5-08d4991fd8e6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 3:xox4rAjWABwSULDghEQNfF3WDTRfNrEEvkiX7N/48oF1GAmoFQCrfnIPG8GaRIFPjtlFO2P6fruZmcf1YkUW5djOX6xrZkwqD5nXDa7EB9kI/nA8ueQckXsAEcOLvpz+BBt7VQxnI4+iclYAdsY2VPqNoPXOS44sVB4vGIsGhWsrSQA1CJURRUvn2JrfZO46I0w3/HKf+HlNS8hlYXCNTk8JWS6xallS8uT+onT0+58f/tuy2D+1WPyBBwLRvwMlCFQVZpA4P9GSSoZzlXxZDla1IQIMUkxWba9tIQ29gYidGY5Hixn1oHOB8hxGAyjSFgXMe+fbYX62eoOOtA3Lbg==; 25:QkDItQKOk8LhoEJVisdmgJWfPTX1akFXj36vZiRFjplrgpLWGXTZWJnZ1cq7YhMpZ1sYZkv8d9bLrXI+9vycEfJhlaRuOxXlpBInyIc0Pekn73FC059U8q36pbsrjIpMEoed6CPz0o0cF5MSxtFb89UetxXX62aUkcBgy75mxWD2E3oaInwEGjTDLtQ3Z0ODUaoajNl8u1q6sLr/bXHUoFMKnbtnMCrG4geSB9iL1Ve0SRg5jFvMIZC/xoeVGznFJohYsyQbfJYMvRHAeBEYc8aP+l7FkBdFaC38SIBpFJUy2bDD5suBx3Iuzqh3eTYEGvR76G57s+C5mHCgWvqVEQ0tXNACnjjcuDLGMkQeA/zVdLbDNx69ZmAmo6mbYOl6ZeRNOMzzjtFeg3rQyXLi5Ws1b52wEdj7ncxfZq4zDeBvy2yrxwRsBYtG4hj1BcxXYGd3Btxv6tteQoaDMe0bNYKYKFBGqn+vDJf9KQe60eE= X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 31:aNWbb841d7sB5X3xx6PmkIh5jLx01w4eCdWxttlyoV3tfyOIoboHdJCMZdjeoyBaX4YDG3ooVvrJEnpykT6QgPF7uqpQ268pLkeZB99NqI34Tlmnc/w7ziitmty21GjLqaJzJS6FNu20gvlEiTQtdGdCZ1Zrmx8yuHN1xuPH+P6nCtAdHTWnaS4ix2FA+vSejcdFQHsykyC+YMvEfx1CHIZb9Wr77KymzKfS0jgcltU=; 20:z/rQ2uiWpW0Y+xWKwnyqDsTCPdILyfWaRuCXVz87ApVtpl1UMeGkm7mb3YHOj+smRK2O/5rfQkaRehU2AVAvgTAGUkyClwq3WxK3JrtLxXsDrP2XwJg7eV8F6hyTc4AcI/4whpwopjZpoRfuGtWA3WfDLKfhDw1xwQseewiV673mokYNQJn5jy0WO0n+X2TUJN0a1PwZ7HtuZmAQ0u9BUo/knOYkB0QOx8MHbuhj/3V/mkp8uFq+h1T57+k1Q299RKb9PR3cvGbMfJ56F8Lp280MscDHWS67dlBQ42khUwAj5NOyYfN3vel8IPC3ll0kIRhsn2una5A3trEJyJcAl08DLUfIO4hX+jFwQGvADm7MFGzbyvuKDmTgso6V/uh9ziGoi3SwD4AgIYhFoXBgsFYdoCpd8Wb6s1VUc6hC3F3fZ/E2pOqA24VNcdr64cWU07yZ8U9jZIhXzMjU52WRZIcu9eVaJMWyGazOaSis7FYRb2LmLOlisnxNGx+Ofl26srb9IRR/n/3kkdm0Jy80/nu4YSDa9ANbbwAyf+8e9ajXP1izYAQXxJTA29qnJ7Hu06j2h8H9yyZ5AUWNtAZ+Ax1DezlTPYp4R6eNRvfEctQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(6072148); SRVR:BY2PR07MB2421; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 4:QStEELQOiq8uBy92rCmulqpXw4rTtPWXBzNKRxKMjqAe/yr32XmuuFs3UTI/Vr+ewHEOsD1kp0OdNXHE5r8vqhEHEMCXG97jWb2YTMm7lVa0WhTZXojmY6cOwgCJp/RH6/OxUEUfhlF1+yHWaFybltbfvMNbCem28H7MfwziQxv2WMRwr/QQcHDZzJzxZKOd6T4+Pmjq61cDATCfCNqT3LkM/vAPmv2+OF7jqtjyBBbVeskal0zkmgct3k3mTwWx7bkVDPDDHAbOPrytDCNhmCRg4q0wJOv+aFzOOYm6nbGiPfhh7TX/V1uNvY3iU2deafUNBn/0HVqJg55R8j9yFn1298SyyLdSqCI63YNdbPCkFTGOoXz/b3MQNhnGj6y8Wi8kNzJpRRkzraNaVTTXXq6uNP1a8WXug5HZXzl6nq4fosGHxhAfdWr0EIpLISi7UfrTgbz0GlggvzL79K49AdYqUx5+nL/TEjCgjy1gObvNYbPZUCWu4KN/5m2l7dTmZTdYJdc/xEGZR7kzgoiD2AtAywS0p8ED41WLjVipd6tV8/Ziv3mckjlncj9oa3hIixaXV24xGh2IoVLSmXXzdauZI+0xLBfQknvk/fbVYvxtEGKDY3ojBh6oQgCahD2pJdfAsNDYQWiqEIvB4PfOPUzqLXAQDynWDKvOTEaC8B8tw1UZYwBFyT5SNNW11hz9Y9L7YyWsV+kNuz8yWi1UMCf+uh3t1fqXdtVW/dl8UkU1PDd7T8UsP00JDUIkq0M0Hkfwe6u5kOaSvcjAeBKOSQ== X-Forefront-PRVS: 0305463112 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(979002)(6009001)(39410400002)(39400400002)(39840400002)(39450400003)(39850400002)(6486002)(8676002)(5003940100001)(6506006)(25786009)(81166006)(76176999)(42186005)(2906002)(47776003)(189998001)(66066001)(33646002)(50986999)(48376002)(53416004)(50466002)(7736002)(4326008)(478600001)(53936002)(50226002)(305945005)(6512007)(6116002)(3846002)(2950100002)(42882006)(72206003)(110136004)(107886003)(36756003)(5660300001)(6666003)(38730400002)(1076002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB2421; H:1scrb-1.caveonetworks.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB2421; 23:GKyKJKki+//rArWaFfkhuhXurSJ1UZrgLgJ6uy/hQ?= =?us-ascii?Q?2ZrIUHwwcb+urNjzarENlFNnJMYNh8nY5D/OZFm4Gb38Efci1HtODgEaexNB?= =?us-ascii?Q?hQnhrHtkP/affrNYuqinreA8j53nUWtUqN8VNLa4fVz3WYlWEL3ZVvdJWhkG?= =?us-ascii?Q?1Ausi4E80R1r6hfQfEjqSNxNz2+ptSuSn9sjPfkaF87bh03TQn5c2b8dNM99?= =?us-ascii?Q?jqGCSk9vdV5MiBY3QHOpTX2SYq6kCugmQsha3FEQM0iDd2kwuRzgclM73OUM?= =?us-ascii?Q?XyYcuAbfYgNlmT2VmTUB+E6RvMTUktivwhbTWNit91bubhaRKC2wM644eNz3?= =?us-ascii?Q?4u2qwyXmXalTkDq+s82YIgYISUh8AVURW1sZkgl5L5YQhkSA8M90vUwLiFPn?= =?us-ascii?Q?A99Sl5Cuv1b0lY2Owv6B8eeE54b+GsgFMqpCI5ORk7IuNbet67Cr1AgLczIm?= =?us-ascii?Q?BtqlH+z/Z+46f4EzKaILIdoulJN0fCvRUeuyFl2K3Pi1fXa9KJd7nfOhOYew?= =?us-ascii?Q?bsLCveXI8Wb9qOh40zqwotXpzcKNIvPIM91hwq+QEKaMsjryorEuB+8L7aGN?= =?us-ascii?Q?8jXI666K9ZGpQsVgCdb7q7Cg5QnmxluZTcycEeQBQ7bD0CiT5u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0rXH7cwVBR24iz1q1NAiZ55tuoI+zBG62NZknT2P9pI9LHaV6kQsaB3ECfkydj4AdXgrAbf5ZYxondVG3eboP/9y6F1Hd3iVEIGtO0AYaG0bVDR6PtA+O7K8B/bWLgdvsKYMuSN41SgVJVl7cp8pQEfWttkFhL8wlFhalEm/4Qe8iWzT/1Z/f2pYK4veuiuza7A==; 5:OG8VspzBncrwuAh9LnHhtzpNzKZksyDSRsjtXou7NGOFdqkGOB2319+C8aob1E1PpF1cqZJUoGm1TtmUbIRu7URVR6B6JKR8Ba9df2NntxBdYlAPuiK2rNLNWJrHVG8iDNqB3qpDLe2nIFDCGtm6Pg==; 24:CISKLwbz512zjTF3e4+ZvUhdkfMs/4o1xYvjG6OUOmVnedpP2wZKk3gU+jUbt30YM383ZZsYExAfd3+H55Rrev+pNE5VIhx5eg634/EZB+k= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 7:y+TKVz4DTDOSt6D1L3sXajwkA3+UlxvrmmTzpq1+wuSc6PTQ5M2EWTRtdJNr92QvZAPsJ6rsUzKJXq3xDjz/4tmAEphGkFf3mHVV09zuOr+oSbU4Jm3o9rG2KTcu6oNR9RBqR17g7HhNJr8iYm9KDyOrlLgPUpbz4n8VcrVuip24n9PovmMJ3ZznSGik6ldvWk5riBWb3LciUygO5mGmDKgaPjOxg06ZAK92A7BUpkIyx0LrMkMKafb1KaAVGS2kaOeP3xXkcMMjBtsl61NqMJ66MD0Sxr+El8UrvJ3jpL5XiAvfqiej4g1rVEw+FyzWltrl6HwstZrZIOTCvW1wmA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2017 10:15:42.3879 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2421 Subject: [dpdk-dev] [PATCH v5 0/4] add arm64 neon version of CRC compute APIs 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: Fri, 12 May 2017 10:15:46 -0000 This patch series adds arm64 neon version of CRC compute APIs utilizing the pmull capability (which is available as part of crypto extensions). * Patch 1 adds crypto capability in compilation of generic armv8a and thunderx targets. * Patch 2 moves GCC_VERSION defintion to a more common location as it will be used in the Patch 3. * Patch 3 adds the arm64 neon implementation of the CRC compute APIs. * Patch 4 adds the test case for testing arm64 neon implementation of the CRC compute APIs. v5: * Moved APIs shift_bytes_left, shift_bytes_right and extract_vector from net_crc_neon.h to rte_vect.h and renamed them to vshift_bytes_left, vshift_bytes_right and vextract respectively. v4: * Rebased on top of latest commit * Edited the Patch 2 commit message body according to comments * Moved definition and usage of GCC_VERSION under RTE_TOOLCHAIN_GCC flag v3: * Moved feature detection changes and GCC_VERSION definition changes to separate commits. * Replaced usage of assert() with RTE_ASSERT() * Made the comments in rte_vect.h more positive in sense * Moved GCC_VERSION definition to common header and removed the same from rte_lru.h v2: * Fixed merge conflict in MAINTAINERS * Fixed checkpatch errors/warnings Ashwin Sekhar T K (4): mk: add crypto capability for generic armv8a and thunderx eal: move gcc version definition to common header net: add arm64 neon version of CRC compute APIs test: add tests for arm64 CRC neon versions MAINTAINERS | 1 + lib/librte_eal/common/include/arch/arm/rte_vect.h | 88 +++++++ lib/librte_eal/common/include/rte_common.h | 6 + lib/librte_net/net_crc_neon.h | 297 ++++++++++++++++++++++ lib/librte_net/rte_net_crc.c | 34 ++- lib/librte_net/rte_net_crc.h | 2 + lib/librte_table/rte_lru.h | 10 +- mk/machine/armv8a/rte.vars.mk | 2 +- mk/machine/thunderx/rte.vars.mk | 2 +- mk/rte.cpuflags.mk | 6 + mk/toolchain/gcc/rte.toolchain-compat.mk | 1 + test/test/test_crc.c | 9 + 12 files changed, 442 insertions(+), 16 deletions(-) create mode 100644 lib/librte_net/net_crc_neon.h -- 2.12.2