From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0094.outbound.protection.outlook.com [157.56.111.94]) by dpdk.org (Postfix) with ESMTP id 7DA4D8F9E for ; Mon, 23 Nov 2015 19:46:44 +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:41 +0000 From: Jerin Jacob To: Date: Tue, 24 Nov 2015 00:15:37 +0530 Message-ID: <1448304338-22767-4-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1448304338-22767-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1448304338-22767-1-git-send-email-jerin.jacob@caviumnetworks.com> 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:zVwvdW/8EMgho5Hs5iYRcQkgN99g0zDTMTsNTNXgGjPKy1fbwsJ0IkYNrv6+LEowazuW2AA4Zcy1LA1uxoG9wz3SEe6XyZ2Y7niBFzYDwATC7pQWxe/iUat2coGr4hdpsCucV9suG7M7qLDs3ekRSg==; 3:BjqjW1msXnLR3uT5Msj5L6TBvT3xmUWqkf4WZ/Jmu5VxGfOrtEj+hU7wuS3Basuwhhat+fLrGDg6HwEPv/rZWjjLNIDnnkCwj/OGJHJ6AqusVYuXfn8qtUQh68gD2q3q; 25:+aZ9v/RWuQmPNtmCSVVDBnH8nrljoUihT6EWlCaeSj3G0jSsw4qzyQA7Iojlr2c0pC0HOvk/n3t9zmTo/flG3yy7APvm2qGfbAX8QH9n03Q+9kCwAKuedAwlOHaOxcj7vOYkaQq/tKMuzBFZLk/YNlj8lUgSA+0k9vfEm4im03lm2B0xV3t1P+8bJIAKlU/r/TFsY8q9PzBYGU82Qg0a/CG3ow2YAr8ZiTQtet6Dxq2uql/be7OJY0sTB6y6RyAWBZm999x9kb5PQkfdy/tuxA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0701MB1975; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1975; 20:93Fsps4EDhPh7CEWoB+KxQwF9JdSP33drwk+MfGjaDtJvqWIZNehN+bCul1Z0aF1S3PQ/arSe+F2uP1ZMwj2JIojKnQpVH6wax2PTZ5D6VgAQhE93nA8cqKXDzHoB0opoPqwQFx54RqPOi/CTiUHwY5zSpP5M9/bc96ytqiM3N0Xm+XjlGQRaILjOm/G14SaFKrqmpJTnjJXdW8wVtRrHV3JKBA5fVhG+/nwO7+mR2KnQ8i7u3GwS4QfxqCofflPc+Z5ykwnygY9N4bjkBjssvQvdJRgAu8TShLItZsagFHX0rZwsEnkDOc0UNHxZuFWh9s7MK4/nRWr8/keQt0gEl+V+Pl5fD0c5Gsg7eBqtdt4TJ3OfsbsPk8OtF7q4BapfZEOgdfv0qui5ygEs7FZVcGBOHnkF1kVJoo/FV8II2vulqs/1pCdSL1/byjX13OrRd1e4FkmraeotsllxwwaMMlOL36L5ntzesi5XtlcWH7jyhnrkhGJHcw8JbWRUYCA+Ww/6CkBSuVDN306lL2jd0GX2O3ZAPJd9SbWocAHiAxMVKsT4Ysg1cvVcFsghYAdE0AsAchzg/hCrJxSEjd9TmhBr3LbnylLP/DP2zas5iU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); 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:yAQd7oJ3hYyK/mLdGjbDGun8N9bW/XpoZmFq9BNDBSG/hF+liRDUHY0fV8scKXccbZkjSWrOKUL5vKBa5PI1skD8K4DlQchZ9xMvqAJHO7BqrFXC/F75QaAKnjj4nKmC25Au1nC8jLfzneybUW2QlgJn5Yr/SVp1NLBvzwOBqfEpw5eR69Kb3cLR0P/a8g6HhfuGKV1EJjVt+k+D1SmzSe2ToRzDCkPa9VIdtgLTdJhq78hpDG24rBK0wmpDVzfMXVct4pNsPp/HTNeaKF778/28wmxaqs1VL1wADLsfwYnUQQltkzpbsAPtCcaAfEfqQ/28qtEQEM8ICPKHzXX0X0No9PEiW702EVEslYKxUgiAk/mtljcNGRegOeuLXkYchq6X+FaxE/6PKeBvUNmNrldnkY8WB8LCo232Ea9BHU1+Qs/51qbv5lECKRDJ+sPC X-Forefront-PRVS: 07697999E6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(189002)(107886002)(92566002)(69596002)(48376002)(5008740100001)(50986999)(101416001)(19580405001)(47776003)(42186005)(19580395003)(76506005)(97736004)(586003)(4001430100002)(66066001)(6116002)(3846002)(106356001)(40100003)(5004730100002)(36756003)(50226001)(33646002)(87976001)(86362001)(5007970100001)(50466002)(81156007)(77096005)(2950100001)(122386002)(5001960100002)(5001920100001)(110136002)(189998001)(2351001)(76176999)(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:LvtbcjxhRopJCu8wzD//CV+elgvEfMa+nwdCAD1?= =?us-ascii?Q?b2n/oIjDP/kc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1BC2Hyd1AXw1OXNDKlH?= =?us-ascii?Q?r9bbNxbi8vB0L5mlXKDzcR/9wA28tAvLKiS28kvWClvatgPcDhnaf5M+fhfd?= =?us-ascii?Q?ORpnY4PJrlBo2OH6lZvLy46CBr54wG4YwjXWR/+lvAyJ8o8PkMRsvNbfO/Un?= =?us-ascii?Q?lgUDJ0efCCTzTIUdB9j79TzHHYauwvj3fw9YaPGDjiA/CJtbyLEpXh9e6NGc?= =?us-ascii?Q?BP3io//JaA1G9Z2oDAiuEZ8NZjUlYS6rL5wl1OzMuV63IRbtwQqi75mQGN5C?= =?us-ascii?Q?Gjia2Kbh20BRQRq79JzHhl3LerCqBUCchpbe8IAOLGV6C+nUtUUYR7D3GXsU?= =?us-ascii?Q?9a1uU1grqmwQb3rEYKxE=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1975; 5:dBORDi4cBXW6d4/JmkBenGGU3gilx4NBaTflGLGrG3aJB1RWMIkY/fH/t2f+bJQyLJpMdFWlCL63MZFPGTPAD3MFCujaoDbUCPfIihHG1/EgJomLBSHHqgYTMXiTEqELA+1r4W9pL+7qyPnOh7Uvrg==; 24:QL1azBeKFlt4GEb88vYJDS7+6L2qdyFHY1Lwzom8UwRuBqlN42SD1qpQk5VEH6uoW7UOFrhqWlqQaMSmYu3ccJztZXkpbW0zMqFUby0GO0o= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2015 18:46:41.6420 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0701MB1975 Subject: [dpdk-dev] [PATCH 3/4] hash: select hash function as CRC if armv8-a CRC extension available 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:45 -0000 select hash function for cuckoo, fbk as rte_hash_crc_4byte if arm64-CRC extension available Signed-off-by: Jerin Jacob --- lib/librte_hash/rte_cuckoo_hash.c | 2 +- lib/librte_hash/rte_fbk_hash.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c index e6520dd..88f77c3 100644 --- a/lib/librte_hash/rte_cuckoo_hash.c +++ b/lib/librte_hash/rte_cuckoo_hash.c @@ -85,7 +85,7 @@ EAL_REGISTER_TAILQ(rte_hash_tailq) #endif /* Hash function used if none is specified */ -#ifdef RTE_MACHINE_CPUFLAG_SSE4_2 +#if defined(RTE_MACHINE_CPUFLAG_SSE4_2) || defined(RTE_MACHINE_CPUFLAG_CRC32) #include #define DEFAULT_HASH_FUNC rte_hash_crc #else diff --git a/lib/librte_hash/rte_fbk_hash.h b/lib/librte_hash/rte_fbk_hash.h index c9b5a6a..a430961 100644 --- a/lib/librte_hash/rte_fbk_hash.h +++ b/lib/librte_hash/rte_fbk_hash.h @@ -55,7 +55,7 @@ extern "C" { #include #ifndef RTE_FBK_HASH_FUNC_DEFAULT -#ifdef RTE_MACHINE_CPUFLAG_SSE4_2 +#if defined(RTE_MACHINE_CPUFLAG_SSE4_2) || defined(RTE_MACHINE_CPUFLAG_CRC32) #include /** Default four-byte key hash function if none is specified. */ #define RTE_FBK_HASH_FUNC_DEFAULT rte_hash_crc_4byte -- 2.1.0