From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9CDAEA04A2; Tue, 5 Nov 2019 18:26:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55A551BE9F; Tue, 5 Nov 2019 18:26:50 +0100 (CET) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id E3B8E1BE86 for ; Tue, 5 Nov 2019 18:26:48 +0100 (CET) Received: by mail-pf1-f195.google.com with SMTP id q26so16027088pfn.11 for ; Tue, 05 Nov 2019 09:26:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2SoBFb+wU7dPwCRjlQVp1i40LxfI1uSFn+Yv14VAczs=; b=r3K+yb0ZwJoo6jnvRD8Ulqsu/8RLbLkbbwhxvTCut1T8h6aXS/yhhKUnfMoBG7FsGg ZlKX2PCrYMqbTlNEMljRwn6BvdpgXGMzmOJaYAZOJA2oSdA3yalqUDfGtFDCmdorxeXn o5Mf88s80uU/kLWrPHmVCiRhuQBYfY0aMh0uguTHGUnOkzfjCBGOMdkYMrqQqgUS3KtG PeOrxaOcKS4fytAbfyDl7HTHvY6eDjHg0EvtXzJtmfXTIKfVYX9S/RE75tbWTn/dVpnP RPI3MxlRLl0bPLAAuOxMmy9dGAgh29xNB6TYSdnK0bJLY75U9ThBaIw3o7tONdPgHzeW Ltkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2SoBFb+wU7dPwCRjlQVp1i40LxfI1uSFn+Yv14VAczs=; b=R7Clt6xFiSgNxXXLoNpn3preLKOsFbtzeemONCwjGhDTWJFVVfabh/dP5/1nH6vAf9 5UrVCiVc4JQCDrlYLwrxW36M6tXn+3c9HvANyyvjFcSP2kpQ7JKCbEjqRtsjTyzLxInB ILemD3xtb1+6/4P8pswo1ZMm6bGEyVSfyvQwZTCzYW+UzGVmX2C4sPr1a/UHEGiKSJOu 7qNT1004NKbG4tRKzPHzPaeLF+XfFWoQPCID/KpUYvko4HmEkfduDVGkkpV8hmQy0ggt efeASMZat7Rn1HdZK7kyyIJop6KejXq5nIWJ4ERnVxmxCR3wkjeWJP0uN3sNsg91zBoO Hmuw== X-Gm-Message-State: APjAAAUkoDutqeE0MVb7Ysd5LAxlmgFfcrfgEB7dDcaxcFInErdZhIu6 7I3va+39Vghll5dMTSGUsu0f6Q== X-Google-Smtp-Source: APXvYqwYC9q/6crl407nMbkPGVV1BYi5rOkHOEu7vu1NDNX2EJHyI0sYHGMMg8cUbemqRf/6LjibKQ== X-Received: by 2002:a17:90a:2e03:: with SMTP id q3mr140849pjd.63.1572974808087; Tue, 05 Nov 2019 09:26:48 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id w15sm6010905pfn.13.2019.11.05.09.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 09:26:47 -0800 (PST) Date: Tue, 5 Nov 2019 09:26:30 -0800 From: Stephen Hemminger To: Raslan Darawsheh Cc: Bing Zhao , Ori Kam , Slava Ovsiienko , "dev@dpdk.org" Message-ID: <20191105092630.7d01b2b6@hermes.lan> In-Reply-To: References: <1572967680-93338-1-git-send-email-bingz@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/mlx5: introduce mlx5 hash list X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, 5 Nov 2019 16:02:18 +0000 Raslan Darawsheh wrote: > Hi, > > > -----Original Message----- > > From: Bing Zhao > > Sent: Tuesday, November 5, 2019 5:28 PM > > To: Ori Kam ; Slava Ovsiienko > > ; Raslan Darawsheh ; > > dev@dpdk.org > > Subject: [PATCH] net/mlx5: introduce mlx5 hash list > > > > Introduce simple hash list to the mlx5 utilities. User can define its own data > > structure containing the mlx5_hlist_entry and create the hash list table via > > the creation interface. Then the entry will be inserted into the table and > > linked to the corresponding list head. User should guarantee there is no > > collision of the key and provide a callback function to handle all the remaining > > entries in the table when destroying the hash list. User should define a > > proper number of the list heads in the table in order to get a better > > performance. The LSB of the 'key' is used to calculate the index of the head > > in the list heads array. > > This implementation is not multi-threads safe right now. > > > > Signed-off-by: Bing Zhao > > --- > > Patch applied to next-net-mlx, Please don't apply so fast! Not allowing a few days for review means that it is just getting rubber stamped and not allowing for any feedback.