* 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. */
| 274 | * The value that was associated with the key, or negative value on error. |
| 275 | */ |
| 276 | static inline int |
| 277 | rte_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 |