From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 28 Jun 2015 15:23:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,695,1427785200"; d="scan'208";a="752125738" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by fmsmga002.fm.intel.com with ESMTP; 28 Jun 2015 15:23:29 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.201]) by IRSMSX109.ger.corp.intel.com ([169.254.13.200]) with mapi id 14.03.0224.002; Sun, 28 Jun 2015 23:23:28 +0100 From: "De Lara Guarch, Pablo" To: Stephen Hemminger Thread-Topic: [dpdk-dev] [PATCH v2 08/11] hash: add new functionality to store data in hash table Thread-Index: AQHQsDAighTfEYOzHEaT1Rs5lskZ9Z3Cf0Vw 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> In-Reply-To: <20150626094955.4a999f79@urahara> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2 08/11] hash: add new functionality to store data in hash table X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 22:23:42 -0000 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