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 EF8BE45493; Tue, 18 Jun 2024 19:42:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A405427C7; Tue, 18 Jun 2024 19:42:05 +0200 (CEST) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mails.dpdk.org (Postfix) with ESMTP id B61FA42797 for ; Tue, 18 Jun 2024 19:42:04 +0200 (CEST) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4217136a74dso48237675e9.2 for ; Tue, 18 Jun 2024 10:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1718732524; x=1719337324; 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=e5LHvNAj5UVlqpM/vZ0GcVrbYCCBzLLNEB3igrm9UR8=; b=MeB1GcQyjVUzacKYL/BPJIIbkNywNMWJJc4DbeWsuH2XCzD0+CJNgWr+h0ngbBTIN3 moF1lx82PulwpudShkt3kDu3jLH9X2crxCtRlHR3eY1Bf7jG1oKG6C7czrU3PyGEfDKF chsDfMBefExeO+Z2y1d4BP4oUda2vWG349IpDTjH1cEHG5/IWU7qB+gQRf0jKWsMiWmA PbsRl0RuyMGT71sqRJ1FNa+8JAI2tZXvEfkHHwjymo5nxILwdyGU/scFnP1DH25DyzrC e3Dtk2At7NKeYXO2jEhtMFuNA61qXwlaTjsZeiS8/fdf9fB5oVHS2g+/nCppYkoZ+vKq EdDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718732524; x=1719337324; 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=e5LHvNAj5UVlqpM/vZ0GcVrbYCCBzLLNEB3igrm9UR8=; b=G2dU6nbaFaC9AuheltHd4hmwIOj6uDpRYaWVZ9/kcFwUByGR0MG8AfI8202fAQY5qB 4K2zfDPgQ+5Sjxtj4VF1oLL3x2ZKpVutz06IsvbF9js5KtBryHtmLttyvfWQRlVYmco1 rNHxuNgwQabZnj5S0YrVWxO05U/Xs3US16icjN1o3nj56mfh8w1BTGnQL1lfHsV/PKJr GpwvBWoCcO2rMBe2117ZLzCA9dFcDlEeESB0/DN1DO1vJxxO9DTnGYkcsX931ASNfiSJ Qzw5DGmqVOZNx5OZbUkT/52ITTnORM6ZNjYT2Py7VBWlH+V6SXVMsQuYzbyG9z4duafU 9vMw== X-Gm-Message-State: AOJu0YzUFkrYlB5L5F8mh3KA3sM6ow/JHt7ZC4kpSETqJM2iNpW+CguW 8qYQRmd70bOGJVQwBuLnzzKlnr0WCpiaMUWgA0SR5dHQdA/URKZ11GJscIm4HWshqrC++tfbFmk y X-Google-Smtp-Source: AGHT+IEhTYnBT/2w50eZlZNrN8UnzpTWS8xPHq8UYlsM804VDuwuNfeMU5RBtntzxOZ7zpdGfFHz+A== X-Received: by 2002:adf:ef48:0:b0:362:172a:b156 with SMTP id ffacd0b85a97d-363177a1d38mr228819f8f.28.1718732524492; Tue, 18 Jun 2024 10:42:04 -0700 (PDT) Received: from C02FF2N1MD6T.bytedance.net ([79.173.157.19]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3609d95bc02sm3211334f8f.18.2024.06.18.10.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 10:42:04 -0700 (PDT) From: Daniel Gregory To: Cc: dev@dpdk.org, Liang Ma , Punit Agrawal , Pengcheng Wang , Chunsong Feng , Daniel Gregory Subject: [PATCH 4/5] examples/l3fwd: use accelerated crc on riscv Date: Tue, 18 Jun 2024 18:41:32 +0100 Message-Id: <20240618174133.33457-5-daniel.gregory@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240618174133.33457-1-daniel.gregory@bytedance.com> References: <20240618174133.33457-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 --- examples/l3fwd/l3fwd_em.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd/l3fwd_em.c b/examples/l3fwd/l3fwd_em.c index d98e66ea2c..4cec2dc6a9 100644 --- a/examples/l3fwd/l3fwd_em.c +++ b/examples/l3fwd/l3fwd_em.c @@ -29,7 +29,7 @@ #include "l3fwd_event.h" #include "em_route_parse.c" -#if defined(RTE_ARCH_X86) || defined(__ARM_FEATURE_CRC32) +#if defined(RTE_ARCH_X86) || defined(__ARM_FEATURE_CRC32) || defined(RTE_RISCV_ZBC) #define EM_HASH_CRC 1 #endif -- 2.39.2