From mboxrd@z Thu Jan 1 00:00:00 1970 From: "De Lara Guarch, Pablo" Subject: Re: [PATCH v2 08/11] hash: add new functionality to store data in hash table Date: Sun, 28 Jun 2015 22:23:28 +0000 Message-ID: References: <1433514804-7075-1-git-send-email-pablo.de.lara.guarch@intel.com> <1435269919-7007-1-git-send-email-pablo.de.lara.guarch@intel.com> <1435269919-7007-9-git-send-email-pablo.de.lara.guarch@intel.com> <20150626094955.4a999f79@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: Stephen Hemminger Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 459D8C4F6 for ; Mon, 29 Jun 2015 00:23:42 +0200 (CEST) In-Reply-To: <20150626094955.4a999f79@urahara> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Stephen, > -----Original Message----- > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > Sent: Friday, June 26, 2015 5:50 PM > To: De Lara Guarch, Pablo > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 08/11] hash: add new functionality to > store data in hash table >=20 > We did same thing with a slightly different method. >=20 > Subject: rte_hash: split key and bucket size >=20 > It is useful to store more data in the has bucket than just the key size. > For example, storing an addresss and additional data. >=20 > Signed-off-by: Stephen Hemminger Did you send this patch? I did not see it in the mailing list... Anyway, I like the idea of allowing the user to store variable size data (I= was storing 8-byte data). So I have sent a v3 with a more similar method, although I still use the ne= w functions, and use the parameter data_len for knowing the amount of bytes of data, and= I keep constant the input key, and return the data in another parameter. Thanks for it! Pablo