From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0078.outbound.protection.outlook.com [207.46.100.78]) by dpdk.org (Postfix) with ESMTP id A51E78E8C for ; Mon, 23 Nov 2015 19:46:37 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.caveonetworks.com (122.167.53.209) by BY2PR0701MB1975.namprd07.prod.outlook.com (10.163.155.21) with Microsoft SMTP Server (TLS) id 15.1.331.20; Mon, 23 Nov 2015 18:46:34 +0000 From: Jerin Jacob To: Date: Tue, 24 Nov 2015 00:15:34 +0530 Message-ID: <1448304338-22767-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.167.53.209] X-ClientProxiedBy: MAXPR01CA0022.INDPRD01.PROD.OUTLOOK.COM (25.164.147.29) To BY2PR0701MB1975.namprd07.prod.outlook.com (25.163.155.21) X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1975; 2:+TtOqsxoDL5RSrln7FjQ/sH3clmIS8yExXoAFmHhLgKJQ3TxYGaBqkL+b1snqSoB/yvsnEtMWp6aEW3Q3x95h6MEt/nXkKddcMYJg7EdYZ8azGM7VM3wghlU3I2CLJ8l7YdyRVcHpfkmGyUB9dFsCA==; 3:+zTqHlczXDsKjmB1RWyiJ6Yi9MJf5nvebP245q/PvWydwVpBAq/oMtDU32cddgZ6DgX8XBbvvT5n814wkPOSvtI25YbXdVL8WX4b4eFHdctsBWGO0W4nFn3AmUtDSQDD; 25:cn89ujkHZjvrmtxGxowcyrQoAWoLmG1jG3275V2OKuthC7HnsuKuO7rwWjJMLhQafvyPIMnOGfUlxnfwQjlcpiarHmuvSkeHm5+db6VOlMAOS2UL3VJ0gb13uZCWzhI7o2IG4wB689CDCdADXkQUwyzNyYVM+Lk0n9uBedfZKXlQHnDW3YMaVz/d7qgUuxCpsL5o7fh+xhypbmOiKvQ1WQLoIYg/aubbIP9PwevI9BSeTILirtnpqihmOp0U9nDe X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0701MB1975; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1975; 20:zkpJVYNZuRgDk4J+1T/bg8lfUiF+fuFC6xJUZaDHIvrv0CbLXhmEB0I72pJGO6ExSvY1I9YxUrkT3iLT4EouiqVyCl/PUHABZFV4xl97D7q8GioZvz7ya6/Cd0IrCH6RVDY8IiGLwhCFuSUxJEIxV3jaPC4Pk7A1lN8E/jxoh+/OQYUvNf6RlU6m8y1F1PM15UtJc4iXpQ6OyniniEGo88Oq21DJJy1IJrhe3UXKjt4qO/SfDY0UoBG0a9pK/woonbm9Fv9asiIoF1uyUyu3nLnPJpQHoKHNqHGNz/zsaFwofetoOBPdt8ejXdyMwZkQ4QemcJUyE60AQIDmYg+jCaoTNABYhTqv7LAaWh6Ykzl2ScA/e2Qs1DmfW6z903HzOhhf0hP3biwVWtq90vCiTYcGVOEw6rhVCoNDL5mUB7+fzh6JfClGOB9Adoc41gvFqCuveAq0SzfSmCmdVghk98dxFGWgqdsHwpzNodMpsw43WTYwaHnJStHxY8+Fc1yywkNs3q1LPauIgRm0rEpKH9QmkgUjCfgTc6GntueDcqoPujvYsDfEhKt/eua7QodsDfvcrsZhWFp4kg6eF87Z00B1lMZr/A1jHDFoT3/nRTE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BY2PR0701MB1975; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0701MB1975; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1975; 4:qjL+xycCJb3T1JBYT1kYwj+9eftchKH+papKZL6Oq0wj5l33t/UZXcaw3g3kO5LnW4LmHiBQb54/KXEOsjIwl3gACSiAHrrwegiW4zUZf3QSXF8XvyBbynx0QSIIPZuBHWNHMwXhvdbVV0M5/h0FVz/g4kbPTawdMl7I0zZnnBC6N93Z+G7Zn4ZpHwHouIsssMZi1/R3wKmzhy9/0uI83ckPlXEnliQl2ijLpJ7kqP6/J1hplzpwbGoINkUKRnpo4FXdHKYlMr7vQ4uvIP+zD9H3HKfr6NpAvJqAKoRi0LMioe7pA9RgyKi1LzjhN31Duc8L6K/8oqqFkxK4sQm5zXjme0//5myTqKwB5Vpe3teWUDz/HoL3tkvmelGRv4VI X-Forefront-PRVS: 07697999E6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(107886002)(92566002)(69596002)(48376002)(5008740100001)(50986999)(101416001)(47776003)(42186005)(19580395003)(76506005)(97736004)(586003)(4001430100002)(66066001)(6116002)(3846002)(106356001)(40100003)(5004730100002)(36756003)(50226001)(33646002)(87976001)(86362001)(5007970100001)(50466002)(81156007)(77096005)(122386002)(5001960100002)(5001920100001)(110136002)(189998001)(2351001)(5003940100001)(105586002)(229853001)(53416004)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1975; H:localhost.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0701MB1975; 23:wL/fveYEoJN88tJj9VH9gWJLiLvsLVmdqBRnoVw?= =?us-ascii?Q?QLESV3W9BVwBr2AxI2sR4e/ixYKNWXk7mwg50NMlyL0fcdx/ArsVGhqXoDiG?= =?us-ascii?Q?sBHE+cIQ60u9a5fnTbCVjBqbOoIdaOmP5BI7NcdeDXhMnTX0jlsbhByBFJrw?= =?us-ascii?Q?1LK6mc19znsOM7neFykmrv7Lggxcxl0xjyjDtcPnT0SmE2v7Yx07OP8DJVCd?= =?us-ascii?Q?Aab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iYY6rXCpWp+cOhxIp?= =?us-ascii?Q?XvW76SWUV5jlh5UX79r14D9urwNkrcul9qft7EybTAD+RiUHIopF2FA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1975; 5:osQZYmLvVWRLWrfz48eHVkzBDBIKvU7hsl5OmVSuN3jM0T4UJRMLcp7dawkjTM6sztmpwl00T/K4HRFfa8EoA2mZVxAm/o7sL6SMOj8JllgSbUnsZVPSWtyFMy/s06A4gaYqkvburKtphWdGuUQTpQ==; 24:7qxvChaves42xbLvixBMv6Y5+6G4IXpKFNCPiWj3EEc1CrXrz2pnxdd6nqxWTCWKcVe66BN7bGE/DFhZVr1FCS01+NKs+qPDMIQ6JZzZhn8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2015 18:46:34.2042 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0701MB1975 Subject: [dpdk-dev] [PATCH 0/4] optimize and use armv8 CRC extensions for hash library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2015 18:46:38 -0000 - This patch set has the changes required for optimised hash library usage in arm64 perspective - Tested on Juno and Thunderx boards - Tested and verified the changes with following DPDK unit test cases hash_functions_autotest hash_autotest hash_perf_autotest hash_scaling_autotes - Created the new xgene1 machine target to address the difference in optional armv8-a CRC extension availability compared to default armv8-a machine target(enabled CRC extension by default) - Supersededs the [dpdk-dev] [PATCH] hash: replace libc memcmp with optimized memory compare functions for arm64 patch Jerin Jacob (4): hash: replace libc memcmp with optimized memory compare functions for arm64 hash: implement rte_hash_crc_* based on armv8-a CRC32 instructions hash: select hash function as CRC if armv8-a CRC extension available mk: add xgene1 machine target based on armv8-a app/test/test_hash.c | 7 ++ config/defconfig_arm64-xgene1-linuxapp-gcc | 56 +++++++++++ lib/librte_hash/Makefile | 3 + lib/librte_hash/rte_cmp_arm64.h | 114 ++++++++++++++++++++++ lib/librte_hash/rte_crc_arm64.h | 151 +++++++++++++++++++++++++++++ lib/librte_hash/rte_cuckoo_hash.c | 9 +- lib/librte_hash/rte_fbk_hash.h | 2 +- lib/librte_hash/rte_hash_crc.h | 7 ++ mk/machine/armv8a/rte.vars.mk | 2 +- mk/machine/thunderx/rte.vars.mk | 2 +- mk/machine/xgene1/rte.vars.mk | 58 +++++++++++ mk/rte.cpuflags.mk | 4 + mk/toolchain/gcc/rte.toolchain-compat.mk | 6 +- 13 files changed, 415 insertions(+), 6 deletions(-) create mode 100644 config/defconfig_arm64-xgene1-linuxapp-gcc create mode 100644 lib/librte_hash/rte_cmp_arm64.h create mode 100644 lib/librte_hash/rte_crc_arm64.h create mode 100644 mk/machine/xgene1/rte.vars.mk -- 2.1.0