From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0074.outbound.protection.outlook.com [157.55.234.74]) by dpdk.org (Postfix) with ESMTP id B9BAA902 for ; Thu, 16 Jul 2015 11:40:12 +0200 (CEST) Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none; Received: from zhigangTHINK (124.207.145.166) by HE1PR02MB0810.eurprd02.prod.outlook.com (10.161.118.15) with Microsoft SMTP Server (TLS) id 15.1.213.14; Thu, 16 Jul 2015 09:40:08 +0000 From: Tony Lu To: 'Pablo de Lara' , References: <1436571020-16252-1-git-send-email-pablo.de.lara.guarch@intel.com> <1436573936-15956-1-git-send-email-pablo.de.lara.guarch@intel.com> <1436573936-15956-2-git-send-email-pablo.de.lara.guarch@intel.com> In-Reply-To: <1436573936-15956-2-git-send-email-pablo.de.lara.guarch@intel.com> Date: Thu, 16 Jul 2015 17:39:47 +0800 Message-ID: <001601d0bfab$6c4071e0$44c155a0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdC7b0qIv8F/NQ3CSUemqhngOgUymAENWKgg Content-Language: zh-cn X-Originating-IP: [124.207.145.166] X-ClientProxiedBy: SIXPR01CA0051.apcprd01.prod.exchangelabs.com (25.163.105.179) To HE1PR02MB0810.eurprd02.prod.outlook.com (25.161.118.15) X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB0810; 2:sRULVdH6kciS7/SkwkpvOOIV/5bePOGGQ5lEtfJsxHSv4bKrhhdBLcjdkRjOpk0k; 3:dbTCvQwoRqWpTS0rBAfOfkgzNmpAfBrE8cfT7ypanJCpeI4rdU11FzMQkHmcNm9k7xpcqEOPffbbCJRyp+E6GkDw3f3BlDvBRnUcrimVXSeY5WBkn4rqBmnTQxb5aYZ8Zzt6TBjMIx5Nk4dF+/4wcQ==; 25:HLnv4xeQ9SEosY2KV+3Lz1iQsqJBSTn7BFTuzSfbjIutz7CEANlj81LqqJgUzVzdnZ8QdZghIIqp9H/W70044+ZOuuqWazpDOXPZY8rc8xa+0OXDQEjc9z89tW5S1dIKIDmyeGgaIL/a7VjlVw9/9X3l38l3lT3A0AlV4N9ALWS3HqCIaT/1GWF8gpzN+1KeXcGQU3+1BZsDFUB+MeLZ+/5amcEKI4rsOVCk7tScOjg9PKbeEEgXaXfNfyWaXNJE; 20:DKEfUjaDS/OgBxb+fhgtcVpXY3Ar9eRKlrbzMaVjDNya36YrKdN8nQo3NdhkR42ZVb2c0Si/bMdLUtnlUD02+DH6uROiX37YnYS+vOwE6f0DjNYcxfKiE12i0045KyjBWimrnIxOawQyG6Z8M9XgCZTpTQ9s9WkKmOVqGmWNsnw=; 4:GsAXEmETGoXkn4MZTEWe9coJrdBHxHc+ONECLHkMaIEGCszlwXSkZD4Q38c64T5+qoeUJYO5UjIn0BiZRtY/wXyqvUlxIxvWMlil0e0q6P6PLsTAFcUIFaRhRtzcFRMTGEqezR4BwQqI/PV7gLwlEQO+D6TBDy3PToermtOluxx0u18s41Fi07lDvGZYPCHGgikq4RMKf2DltL6bPjtcBleqddmn2BKF/JQ+ApMe9N1uG0GB30e3ImQg5PUT/a3xgo6Ol7MRfLys+Klo5OAIpKFDJdNvzDa+TxEZwxfYFe8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR02MB0810; HE1PR02MB0810: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:HE1PR02MB0810; BCL:0; PCL:0; RULEID:; SRVR:HE1PR02MB0810; X-Forefront-PRVS: 0639027A9E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(61296003)(33646002)(97756001)(76176999)(189998001)(50986999)(107886002)(46102003)(47776003)(96836002)(62966003)(66066001)(33716001)(50226001)(77156002)(5001770100001)(87976001)(102836002)(5001960100002)(50466002)(42186005)(2656002)(2950100001)(59696002)(77096005)(122386002)(92566002)(46406003)(86362001)(23726002)(14726001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR02MB0810; H:zhigangTHINK; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB0810; 23:eH8GwWUD5ri+LJ6uOmWc6MBZAUFGmUbnX9FVwc4AtsfQdSaQXGP8HoZhlHlKsK0OVh/xNRHGO6cOZYAuwJZOZONcWlXyN1+K+2Op2McUAooxwEuyoZNdUAHloqMfiyRJb2zbedpDRlrwqBMGX2GoNBMPHfC6XdlD4BJWgKmwqtAdPSiMDQVfddpATBX4zfTbPXVTnrw9yCvLZOc1kcQjyybm3lRpia/uDFFGFxYfZvLJH4PuvhFfli8r/K7/UNJ3jQNT9zMf1ye10h5wtgM0v/uNzp+Z9U15/FtEn17s6w7KEuW+brGVh0EJfTa9cuE6NxNh4ZvVb2R3cELdVHe5Yj9lVMgAJjwK/DyJ3Y939QUB7dhSZw8xbp2VcIV7qy79o2lraz+TV8bW67MKRE5nV6yqAXugUfmwaxBVgL8c7lxjXqidaTTog3AyfPDd/0yK/BztYCNtdBk4LC1T5DCp819KP2yCY7tHZPgiyvs5Zqcpdhvz19iH6gA0G+MDNfCUv6xfVLT0ptRf9BNq1wPWkH5MOBfQeoXamAHpOVCdf/GsnKy0z0yvshItlJYzYyeJBqGKC9b7BHLY0JXjADBnF+6FqWMkum2uGSgeL5MRIxGkk/NWERBrx9/cXvO+jENs96nQGP+wXhuvtZfBTqD0bLshOER+iUVx1YpQRMF3H46IAEiYEYfudIDa+Ve2sAEhKWmrHPs3f6cJQOlkpKI6sk1KgzXybMwgVTflkR5UICw334Fhk1hUIXz5K/7q23TENi8+oQ9DFxk3nlO47X/P8Zmx+8WZD+voIjCdKUibBjsrUwk0KPIjVsDuUx++YpoZk7loWE9RyYoZ1XFFfGzOjJF0HPS3ep119xp3DmqQzes= X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB0810; 5:jtgADXLjJNSjJQUTfTD2yE9v0D95tu7x2TfDH7lfPrccgp73+LghoD9kGN/bpgHlpDVc+aeRCFzYmzaCZ5xnIZvb3s5BPo6PXQo7lnhUc1FIBugG2+n583dkqYfzgvpLULbWRp7xUT1gI2Qf11T2Mg==; 24:RSNeTULEmAj9r189U0bbXnWPskg/Vf2nIEvfPsbbqcVn/xnK61142aDJecIxts9qCKx14R8QpzB793X0VYxHvV2IBN4yKH3MibZNlneWVZ8=; 20:krEAs275ywv1mEYf8OV6XQLOmErF7imEhlxtTDJ2aY6aiUlVdw4I4hQF0MHrAXB/L08VItJUR+cIPnS1OovWLQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jul 2015 09:40:08.8849 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR02MB0810 Subject: Re: [dpdk-dev] [PATCH v7 1/7] hash: replace existing hash library with cuckoo hash implementation 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: Thu, 16 Jul 2015 09:40:13 -0000 >diff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c >new file mode 100644 >index 0000000..50e3acd >--- /dev/null >+++ b/lib/librte_hash/rte_cuckoo_hash.c >@@ -0,0 +1,1027 @@ ... >+ >+/* Functions to compare multiple of 16 byte keys (up to 128 bytes) */ >+static int >+rte_hash_k16_cmp_eq(const void *key1, const void *key2, size_t key_len >__rte_unused) >+{ >+ const __m128i k1 = _mm_loadu_si128((const __m128i *) key1); >+ const __m128i k2 = _mm_loadu_si128((const __m128i *) key2); >+ const __m128i x = _mm_xor_si128(k1, k2); >+ >+ return !_mm_test_all_zeros(x, x); >+} ... When compiling the latest dev DPDK for non-x86 arch, it fails on the above code, as the SSE is x86 specific defined in . Is it possible to replace this function with platform independent code? Thanks -Zhigang Lu