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 582D545615; Fri, 12 Jul 2024 17:47:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DDBA442F1F; Fri, 12 Jul 2024 17:47:02 +0200 (CEST) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mails.dpdk.org (Postfix) with ESMTP id CE14E42EE8 for ; Fri, 12 Jul 2024 17:46:57 +0200 (CEST) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-367b8a60b60so1215808f8f.2 for ; Fri, 12 Jul 2024 08:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1720799217; x=1721404017; 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=TlMuyNla6qAv3Y1FGYYPO9dGF6C4lKiN13+TvMLCyAY=; b=dr0cQijeLZGoXhGLmGk9ki3QGKevpDsdULj0UdD02iptdnDRbpl2l2ZjDIRgjGNUeL FeaWYFEcorjuyR5fYzCb8bbVcs9xvHb/LtC4tzrXrXGtNXbrd+9Dgu3l0nIKC3L5c5f8 TjWwABc3ZSqwi8ELBpIqVvASeH44TzWXVK+Nzc0X+EOOdFAPyciExL7/qWu9vtm1/eu8 71SwD/dqSz3gV+DfrwJjDCLDgVavzzhooh+SQXq0TxEF/qKg+Sqh/EpLRtBuQZ5HaZRD HFCxQiImXq5nt+m/FZ/VmJbHz8uvCNLYMHARJo87ui/ieoUVfbFhpd2sWdIUxMYqhqaw 4kmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720799217; x=1721404017; 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=TlMuyNla6qAv3Y1FGYYPO9dGF6C4lKiN13+TvMLCyAY=; b=B64rmkfVIvt48UOf2G22S/OFotoJFVEuvy8gMNksymJKO0Bc1XUyj211118K0xRdxc hTt4AcM6c4zorV0XPt7JmRSA0gv9u8koub1YPlOEdnsc2ujeUPrB90H65lkCE0ZlBMo/ S+zJbYMoKsBpb82SzzKgKa6i2ZohGjtwrIwGmFvKyLhA/AztBX03acRRNNGyIPDB0zft iDcrqmZdkgvvdV+RCWQrHkYhN5Qrlz2zyFOBNLOM77h2Z5FLTKEJYteKs55dAKgToKj1 PI4TTZMNl4EQdaRfqhyCbTQIIBt3F0Ng3mdtQvQkucWv+oO8o3eucK/gDwnetdjWgf92 L9JA== X-Gm-Message-State: AOJu0Yz/iPujroxdPwxabvfm3P0gxupSStR0D+YtLZ95ZBmLnln5HZI8 M1dzG9AJXt4FHX+1IXrx/Wnx4CqlUOCAkqPUDPpU765acGzqDRpprv/cEW18Wf0= X-Google-Smtp-Source: AGHT+IG6syd+vN2/fKqdRmz7tyPggXPxjADtEb6NzA0q+QgEcDYIq1do0HkG59T6fh2PuEyY9JTKNA== X-Received: by 2002:a5d:4442:0:b0:367:97b1:b22a with SMTP id ffacd0b85a97d-367cea67e92mr6928772f8f.20.1720799217582; Fri, 12 Jul 2024 08:46:57 -0700 (PDT) Received: from C02FF2N1MD6T.bytedance.net (ec2-3-9-240-80.eu-west-2.compute.amazonaws.com. [3.9.240.80]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367cde7e023sm10468615f8f.13.2024.07.12.08.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jul 2024 08:46:57 -0700 (PDT) From: Daniel Gregory To: Stanislaw Kardach , Anatoly Burakov , David Hunt , Sivaprasad Tummala Cc: dev@dpdk.org, Punit Agrawal , Liang Ma , Pengcheng Wang , Chunsong Feng , Daniel Gregory Subject: [PATCH v2 7/9] examples/l3fwd-power: use accelerated crc on riscv Date: Fri, 12 Jul 2024 16:46:43 +0100 Message-Id: <20240712154645.80622-8-daniel.gregory@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240712154645.80622-1-daniel.gregory@bytedance.com> References: <20240618174133.33457-1-daniel.gregory@bytedance.com> <20240712154645.80622-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-power/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index fba11da7ca..c67a3c4011 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -270,7 +270,7 @@ static struct rte_mempool * pktmbuf_pool[NB_SOCKETS]; #if (APP_LOOKUP_METHOD == APP_LOOKUP_EXACT_MATCH) -#ifdef RTE_ARCH_X86 +#if defined(RTE_ARCH_X86) || defined(RTE_RISCV_FEATURE_ZBC) #include #define DEFAULT_HASH_FUNC rte_hash_crc #else -- 2.39.2