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 A3DEB45879; Tue, 27 Aug 2024 17:37:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3147940E5E; Tue, 27 Aug 2024 17:37:00 +0200 (CEST) Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) by mails.dpdk.org (Postfix) with ESMTP id 2537840E2D for ; Tue, 27 Aug 2024 17:36:58 +0200 (CEST) Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a868b8bb0feso620605466b.0 for ; Tue, 27 Aug 2024 08:36:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1724773018; x=1725377818; 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=9fRyCJ2Nxlxkihqviu8ws2fv3ueTIsYY9h7tVgKXZYs=; b=jMj1jkhTnxXJR7380VNybbfNB+KNe1dKEOk3BA8pZCJwjRR7IBCWVdKq1ZWT1fvTyV s8YnpDAWI+ipfR0MFMIr4Ren/a9eSSDpvcO59eVRzZ9loqB2irjkyH8gt+8b6b85uBXS j0MYeDbyJb9xzDEm4SSzuJcs5+PvCmD74RGJEVP11SFXGmNdwb9T8p1ZyVfSMO4fGr6r ZD14276khvjAHGZ1DMRXqcNHs4PjrwO+DzpyDtKndwiVVyEpMzAVJdGwT3lx3Iw5RHLS FBnPgourCZU8XVTpEpBfwNyEZUY7D4iw3dW5NrrhbQNmEgFJuVNgziY+yfMzBCv9dVL4 HWgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724773018; x=1725377818; 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=9fRyCJ2Nxlxkihqviu8ws2fv3ueTIsYY9h7tVgKXZYs=; b=flVcX8TBtb6qY/mu+yx+2yqAGIukEGdiHf5XtiHtBjsGG8nBwwQMum5TTC6UFmKs+5 ClvJa2ScJe7Qx9N+MCpd1+OVAvArn5o9XORypw9hkdUFcUPp/4gu3wtyFnBLmAkUUhNW VhkVyzoy2cTaa427NS49yDrdks7ygJzyFA6oJiBm0blzSXS0SY0tOkqSsv6/DAQIbfpo QmHwPteocEKggauC/Ev7z/6c5TrSEbDaPJqCoAuq/esdQWU3PU6Ynk1+dk86U4m0VFC2 qyEVYF8k5XOQjii9WG3wiHU80lFi7eYo40qEt0UPg95sLVrjqvotZyQSTvBGNK570+CI 35YA== X-Gm-Message-State: AOJu0YxcU1DkStexyv10hHPPIXDuvAq+lGZqiAF7RhSggZZ5OCj1lDi7 NyPaMAPBb2T0vQTJfddp5nXbyXs2CMVdy5sFH7tmi9ya/cBVVo0Q++IxN+Z41iU= X-Google-Smtp-Source: AGHT+IFSDeZNWzBCsKUf7kSxTzGk96YogAeYSFyqGwa3UIYQiMBp6/mNvBD0Gu0oYfaHfDSlZ8XoYA== X-Received: by 2002:a17:907:7ea7:b0:a86:7adb:b32c with SMTP id a640c23a62f3a-a86e3d4d663mr199512266b.68.1724773017595; Tue, 27 Aug 2024 08:36:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2024 08:36:56 -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 v3 7/9] examples/l3fwd-power: use accelerated CRC on riscv Date: Tue, 27 Aug 2024 16:36:47 +0100 Message-Id: <20240827153650.53170-3-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 --- 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 2bb6b092c3..c631c14193 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