| 1447 | } |
| 1448 | |
| 1449 | int |
| 1450 | rte_hash_lookup_data(const struct rte_hash *h, const void *key, void **data) |
| 1451 | { |
| 1452 | RETURN_IF_TRUE(((h == NULL) || (key == NULL)), -EINVAL); |
| 1453 | return __rte_hash_lookup_with_hash(h, key, rte_hash_hash(h, key), data); |
| 1454 | } |
| 1455 | |
| 1456 | static int |
| 1457 | free_slot(const struct rte_hash *h, uint32_t slot_id) |