[dpdk-dev] [PATCH v7 3/7] hash: add new functionality to store data in hash table

2015-07-11 Thread Pablo de Lara
Usually hash tables not only store keys, but also data associated to them. In order to maintain the existing API, the old functions will still return the index where the key was stored. The new functions will return the data associated to that key. In the case of the lookup_bulk function, it will r

[dpdk-dev] [PATCH v7 3/7] hash: add new functionality to store data in hash table

2015-07-13 Thread Thomas Monjalon
Hi Pablo, There is a remaining error below: 2015-07-11 01:18, Pablo de Lara: > +int > +rte_hash_lookup_bulk_data(const struct rte_hash *h, const void **keys, > + uint32_t num_keys, uint64_t *hit_mask, void *data[]) > +{ > + RETURN_IF_TRUE(((h == NULL) || (keys == NULL) ||