From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D393C636A0 for ; Sun, 22 Feb 2026 15:31:44 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A7384066D; Sun, 22 Feb 2026 16:31:37 +0100 (CET) Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) by mails.dpdk.org (Postfix) with ESMTP id D56AD4064C for ; Sun, 22 Feb 2026 16:30:53 +0100 (CET) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=danielg0.com; s=key1; t=1771774253; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gwe4Wjx12AEvwgT/qwlB6plTxxvcygRv2t/haIucsAo=; b=RoUfjdrncMPZ+BjnerjB4OKqWC10BLGGTTJzUON0HGaAkgwv45BqC+zdGbpnxP2OGe/XXN s5HJ8A+oUzNSgpHD5Wxa09bQKeeZv8RfO1qXQBSiBSDAbcCjT1jiBK6afOmTCJ3AZjbrXy TjTWPowa6I3xY/u9bP7YC7ngT//yXBc= From: Daniel Gregory To: =?UTF-8?q?Stanis=C5=82aw=20Kardach?= , Yipeng Wang , Sameh Gobriel Cc: Daniel Gregory , dev@dpdk.org, Punit Agrawal , Liang Ma , Pengcheng Wang , Chunsong Feng , Sun Yuechi Subject: [PATCH v4 09/10] member: use accelerated CRC on riscv Date: Sun, 22 Feb 2026 16:30:03 +0100 Message-ID: <4ad0a26fa5a02032fb3e44c43c68fbc2c4af5775.1771772598.git.code@danielg0.com> In-Reply-To: References: <20240827153230.52880-1-daniel.gregory@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Daniel Gregory When the RISC-V Zbc (carryless multiplication) extension is present, an implementation of CRC hashing using hardware instructions is available. Use it rather than jhash. Signed-off-by: Daniel Gregory --- lib/member/member.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/member/member.h b/lib/member/member.h index 96003f7543..0950709eb6 100644 --- a/lib/member/member.h +++ b/lib/member/member.h @@ -12,7 +12,7 @@ extern int librte_member_logtype; "%s(): ", __func__, __VA_ARGS__) /* Hash function used by membership library. */ -#if defined(RTE_ARCH_X86) || defined(__ARM_FEATURE_CRC32) +#if defined(RTE_ARCH_X86) || defined(__ARM_FEATURE_CRC32) || defined(RTE_RISCV_FEATURE_ZBC) #include #define MEMBER_HASH_FUNC rte_hash_crc #else -- 2.53.0