From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 365DBA04DD; Thu, 22 Oct 2020 10:00:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 08C282142; Thu, 22 Oct 2020 10:00:20 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by dpdk.org (Postfix) with ESMTP id CE2EAA6A for ; Thu, 22 Oct 2020 10:00:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603353616; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vuqcj6h1/SmvVDTnZhRADtYA5sNUPvhZ9wgaMNOY+e8=; b=J4BxPzCTRG3hLje1yTDy2beu1yHk2IRdVZU+8d28H1sljtl6ptV3bVZf6/pH4bpwMr9KOi /0sueaOqUnaVkCppePDMdwrmZMXERAk7xKhwuCeRYlrtwvLlvJOOcihHnqSiHcW27mkkdM Lm+az+i7+d1NzhRjqPkBgDFXRF439+k= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-328-Qmomlh01MxOqgr4aKrfHuA-1; Thu, 22 Oct 2020 04:00:12 -0400 X-MC-Unique: Qmomlh01MxOqgr4aKrfHuA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4C5FE190A3E6; Thu, 22 Oct 2020 08:00:11 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7591B6EF68; Thu, 22 Oct 2020 08:00:09 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Yipeng Wang , Sameh Gobriel , Bruce Richardson , Pablo de Lara Date: Thu, 22 Oct 2020 09:59:59 +0200 Message-Id: <20201022075959.19638-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH] hash: use x86 common flag for jhash 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" jhash has been forgotten when factorising the x86 arch check. Fixes: dbf17d44f375 ("hash: use common x86 flag") Signed-off-by: David Marchand --- lib/librte_hash/rte_jhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_hash/rte_jhash.h b/lib/librte_hash/rte_jhash.h index 7a1eeff74e..f2446f081e 100644 --- a/lib/librte_hash/rte_jhash.h +++ b/lib/librte_hash/rte_jhash.h @@ -91,7 +91,7 @@ __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc, * Check key alignment. For x86 architecture, first case is always optimal * If check_align is not set, first case will be used */ -#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) || defined(RTE_ARCH_X86_X32) +#if defined(RTE_ARCH_X86) const uint32_t *k = (const uint32_t *)key; const uint32_t s = 0; #else -- 2.23.0