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

2016-06-16 Thread De Lara Guarch, Pablo
> -Original Message- > From: Yari Adan Petralanda [mailto:yari.adan.petralanda at ericsson.com] > Sent: Thursday, June 16, 2016 9:23 AM > To: Richardson, Bruce; De Lara Guarch, Pablo; Juan Antonio Montesinos > Delgado > Cc: dev at dpdk.org > Subject: [PATCH] hash: new function to retrieve

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

2016-06-16 Thread Bruce Richardson
On Thu, Jun 16, 2016 at 10:23:42AM +, Juan Antonio Montesinos Delgado wrote: > Hi, > > As I understand it, the hash table entry can change position in the first > hash table but the index in the second hash table remains the same. So, > regardless the bucket the entry is in, the index (of th

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

2016-06-16 Thread Bruce Richardson
On Thu, Jun 16, 2016 at 10:22:30AM +0200, Yari Adan Petralanda wrote: > 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