MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_fbk_hash_lookup

Function rte_fbk_hash_lookup

dpdk/lib/hash/rte_fbk_hash.h:276–281  ·  view source on GitHub ↗

* Find a key in the hash table. This operation is multi-thread safe. * * @param ht * Hash table to look in. * @param key * Key to find. * @return * The value that was associated with the key, or negative value on error. */

Source from the content-addressed store, hash-verified

274 * The value that was associated with the key, or negative value on error.
275 */
276static inline int
277rte_fbk_hash_lookup(const struct rte_fbk_hash_table *ht, uint32_t key)
278{
279 return rte_fbk_hash_lookup_with_bucket(ht,
280 key, rte_fbk_hash_get_bucket(ht, key));
281}
282
283/**
284 * Delete all entries in a hash table. This operation is not multi-thread

Callers 3

fbk_hash_perf_testFunction · 0.85
fbk_hash_unit_testFunction · 0.85
mcast_forwardFunction · 0.85

Calls 2

rte_fbk_hash_get_bucketFunction · 0.85

Tested by 2

fbk_hash_perf_testFunction · 0.68
fbk_hash_unit_testFunction · 0.68