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 671F4A0093; Wed, 9 Nov 2022 23:08:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CF6D400EF; Wed, 9 Nov 2022 23:08:44 +0100 (CET) Received: from mail.lysator.liu.se (mail.lysator.liu.se [130.236.254.3]) by mails.dpdk.org (Postfix) with ESMTP id CD720400D4 for ; Wed, 9 Nov 2022 23:08:42 +0100 (CET) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id 9A8991A554 for ; Wed, 9 Nov 2022 23:08:42 +0100 (CET) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id 992CC1A991; Wed, 9 Nov 2022 23:08:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on hermod.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=ALL_TRUSTED, AWL, NICE_REPLY_A autolearn=disabled version=3.4.6 X-Spam-Score: -1.5 Received: from [192.168.1.59] (h-62-63-215-114.A163.priv.bahnhof.se [62.63.215.114]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 055981A5EA; Wed, 9 Nov 2022 23:08:42 +0100 (CET) Message-ID: Date: Wed, 9 Nov 2022 23:08:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: Question about naive XOR hash in DPDK Content-Language: en-US To: Bili Dong , dev@dpdk.org Cc: cristian.dumitrescu@intel.com References: From: =?UTF-8?Q?Mattias_R=c3=b6nnblom?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 On 2022-11-07 19:57, Bili Dong wrote: > Dear DPDK devs, > > We are using DPDK as the backend target of a P4 pipeline > (https://github.com/p4lang/p4-dpdk-target > ). A recent issue we are > trying to solve is to support a naive XOR hash (something like this > ) in this pipeline. This requires an XOR hash implementation in DPDK.I have the following questions: Why would it *require* an xor hash function in DPDK? > > 1. Is there already an XOR hash implementation in DPDK? I haven't found > it myself, but I could have missed it. > 2. If it doesn't exist, I'm willing to contribute one, as the > implementation is quite straightforward. But I might need your help > on where to put the code, as I'm not that familiar with the code > organization. > > Any help would be appreciated! > > Thanks, > Bili >