From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6BE5445879; Tue, 27 Aug 2024 17:37:21 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EBB340ED2; Tue, 27 Aug 2024 17:37:02 +0200 (CEST) Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by mails.dpdk.org (Postfix) with ESMTP id 51A9840E72 for ; Tue, 27 Aug 2024 17:37:00 +0200 (CEST) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a83562f9be9so517088266b.0 for ; Tue, 27 Aug 2024 08:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1724773020; x=1725377820; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0fXJ6t0d2zAO6sEyqI+7xcaVC7kKapC5S+fh1vOf4A0=; b=lSZO6mjGfcbPRW2huFyrZx5ji8YdBsSnOQXIgdlaeLsvEcrFo9IvJX0ykOhcWAJiTC LF9sufBNDQ/gxiBdEP6ujhGFkGNG0X8ucCOdYomlDPEVRT3+l//h6UGUaJ6/fIvzfaY+ j1eOftg7eYM6/Cz5qZXf0eBi0o/PuxGzkary9hkXA06/yEtPzxieLwYWgmcAsFI+dquf wjGfRLD+1f0nieYYGGlaUWaxhwYbbmiNbTRDuW0raf1Ri3VwXSFnWfiB82TsS7uEnGrR SQPsqcr5bsUkS+4y+hBZD2RNC6GvKaQFpCzeaIkbv0vFGzS8uw90fPgdhhK1KtL7MnPZ P0MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724773020; x=1725377820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0fXJ6t0d2zAO6sEyqI+7xcaVC7kKapC5S+fh1vOf4A0=; b=uPGgy2HwPunKL1ZXbHtr6WWDja8wt7q96BUsIju7uwG4OqBHPDTcBXeuZy5P6WeAEz f/vBPCazt941gkn4e27xDvrudxTc1y89z2GJX4iDuIHqycGww7cCi/RNz8o5MCuWEnLL iUBCXgR1yHhhJJRrjr4SXrxKxAHX6Kyb9dP8dETagWAEmNEzzIy44kcC78LyRAWRRB9R lS1PawUIXLLMFkxggLp6v1cbGCdFJrtoGk+ue7zR9QNMWUWR9dt1N8rqSU4JjrKBNoln HbTWbrS2NyKFNvpD/pUIEBE70J0OJEPe4MtZhU+dXzrHu7sEPNiX2tGpvjTopaEd9Sdj pQpQ== X-Gm-Message-State: AOJu0YwFyeatgvfF68g8WNh9W1uQLHdIGt5gnPluVMiQ1KeteifOs9Mb XdYoVdN5QdKdi+xUbFTOpTINiS+JNGWFTwOes5ownKTvvfaI3eKYBqMlkMeYd0w= X-Google-Smtp-Source: AGHT+IFJ70fAoJNrx8PCAQEMqXDn+yl8xmzTEiGLuwkcus2GKYbQa3jXB+MfrtPI91C+Fh75HLj3fw== X-Received: by 2002:a17:907:3da0:b0:a86:817e:d27b with SMTP id a640c23a62f3a-a86a54b05f3mr1001645266b.43.1724773019873; Tue, 27 Aug 2024 08:36:59 -0700 (PDT) Received: from C02FF2N1MD6T.bytedance.net ([79.173.157.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a86e592d995sm122307366b.204.2024.08.27.08.36.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 08:36:59 -0700 (PDT) From: Daniel Gregory To: Stanislaw Kardach , Yipeng Wang , Sameh Gobriel Cc: dev@dpdk.org, Punit Agrawal , Liang Ma , Pengcheng Wang , Chunsong Feng , Daniel Gregory Subject: [PATCH v3 9/9] member: use accelerated CRC on riscv Date: Tue, 27 Aug 2024 16:36:49 +0100 Message-Id: <20240827153650.53170-5-daniel.gregory@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240827153650.53170-1-daniel.gregory@bytedance.com> References: <20240827153230.52880-1-daniel.gregory@bytedance.com> <20240827153650.53170-1-daniel.gregory@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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/rte_member.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/member/rte_member.h b/lib/member/rte_member.h index aec192eba5..152659628a 100644 --- a/lib/member/rte_member.h +++ b/lib/member/rte_member.h @@ -92,7 +92,7 @@ typedef uint16_t member_set_t; #define RTE_MEMBER_SKETCH_COUNT_BYTE 0x02 /** @internal 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.39.2