[dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its position

2016-07-05 Thread De Lara Guarch, Pablo
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yari Adan > Petralanda > Sent: Monday, July 04, 2016 10:00 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its > posit

[dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its position

2016-07-04 Thread Yari Adan Petralanda
Sorry, didn't mentioned the changes introduced in v3: *) solves some tabs for whitespaces issues *) references the right DPDK version *) reduces the size of the rte_hash_create() argument in the unit tests Thanks!! On 07/04/2016 10:59 AM, Yari Adan Petralanda wrote: > The function

[dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its position

2016-07-04 Thread Yari Adan Petralanda
The function rte_hash_get_key_with_position is added in this patch. As the position returned when adding a key is frequently used as an offset into an array of user data, this function performs the operation of retrieving a key given this offset. A possible use case would be to delete a key from

[dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its position

2016-07-04 Thread De Lara Guarch, Pablo
Hi Yari, > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yari Adan > Petralanda > Sent: Monday, July 04, 2016 10:00 AM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v3] hash: new function to retrieve a key given its > posit