hash: use x86 common flag for jhash
authorDavid Marchand <david.marchand@redhat.com>
Thu, 22 Oct 2020 07:59:59 +0000 (09:59 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 22 Oct 2020 20:07:15 +0000 (22:07 +0200)
jhash has been forgotten when factorising the x86 arch check.

Fixes: dbf17d44f375 ("hash: use common x86 flag")

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_jhash.h

index 7a1eeff..f2446f0 100644 (file)
@@ -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