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 4291C45879; Tue, 27 Aug 2024 17:36:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C55D740E3A; Tue, 27 Aug 2024 17:36:55 +0200 (CEST) Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) by mails.dpdk.org (Postfix) with ESMTP id AF99B4027A for ; Tue, 27 Aug 2024 17:36:53 +0200 (CEST) Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a83597ce5beso881222266b.1 for ; Tue, 27 Aug 2024 08:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1724773013; x=1725377813; 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=1eaeEd1RuyAk0MrrlP3N7p++Y6Lj0+jD+jYFv/KJKQs=; b=FYcu7bEVGatBFxHSOTjPNkU2BQaJiVDp+IjuQ7nXP4CRqzwdP9rKAwOmJjRjY2VgVQ xOmIQ2Yq0zIGb7MeD6Z3bsdhm9w6WXDryrr5ohwR3udmkAsTc6tSq6pmpn4iyQdmz+Kd tAxuFs3iNrX+fsjQPuYrTCZwEMp3S2hMpbY6luAxmIORv9XJCI7aE/dweAHeVRxXWcRB ULHhFuMTfhPGnvTM/miEaIPD9nIqtHulTbH1dZn4F1RmpRZKTg4cuXPlna2ck4GxLbIc etkBK6XgwRqjCxlimNlEgrBpxrA2rHDsFs8IM9GAXAJGYxkQUB+xrCG4i0mLt54ilr8N pFFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724773013; x=1725377813; 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=1eaeEd1RuyAk0MrrlP3N7p++Y6Lj0+jD+jYFv/KJKQs=; b=g1sTwb+VvLp/tuG7epSbMPLMsx45cY7T45sUM8I9vo3i/856TuEv2e79E25hGS2BeN qcHy+2zXk1NBnHkc3xd9B1fk5DJbSxA1PRiafLce9GlwN5PMluE3ZhzMdpxSLulRPruu ylwMhOqipOsR0XP3tiaVxUmjZUcQY0EAhz59mpbywu5sN4ulhhXsdepy/XobI4acqcba pfiSBNppww749mj/tubn+CdNkOop8Lo+3xo3fLfBnJ/lN10beeeJ8tLxUOqf37m+6MxU /qY7WzHeQ6nDdTIVAKjUp8DUolYaYyJwpu4p3/JWE6dNyxMC0YHAu3VPAuMTCuCodTW0 BTBA== X-Gm-Message-State: AOJu0Yz7AAgHYrJfvaABAUUwrTTFo7I+8wgyXU9w+MjkREsz9aOiLOXk 4zzk7Yn/KfjBuV2L+mnw+cPDtzJohROGoYWEJ/4sE1R9h8/PLpO7vKW00c3S8ak= X-Google-Smtp-Source: AGHT+IH8axFxhfC7iQ+1hhISlYUqVYMIA9KLXHXJjTeI6TphpZLhHxxS/qVx07+miDtpr1QWLl/I3w== X-Received: by 2002:a17:907:9703:b0:a86:b448:cbe with SMTP id a640c23a62f3a-a86e2902f5emr391764566b.10.1724773013164; Tue, 27 Aug 2024 08:36:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 08:36:52 -0700 (PDT) From: Daniel Gregory To: Stanislaw Kardach Cc: dev@dpdk.org, Punit Agrawal , Liang Ma , Pengcheng Wang , Chunsong Feng , Daniel Gregory Subject: [PATCH v3 5/9] examples/l3fwd: use accelerated CRC on riscv Date: Tue, 27 Aug 2024 16:36:45 +0100 Message-Id: <20240827153650.53170-1-daniel.gregory@bytedance.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240827153230.52880-1-daniel.gregory@bytedance.com> References: <20240827153230.52880-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 31a7e05e39..36520401e5 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_FEATURE_ZBC) #define EM_HASH_CRC 1 #endif -- 2.39.2