| 1210 | } |
| 1211 | |
| 1212 | int32_t |
| 1213 | rte_hash_add_key(const struct rte_hash *h, const void *key) |
| 1214 | { |
| 1215 | RETURN_IF_TRUE(((h == NULL) || (key == NULL)), -EINVAL); |
| 1216 | return __rte_hash_add_key_with_hash(h, key, rte_hash_hash(h, key), 0); |
| 1217 | } |
| 1218 | |
| 1219 | int |
| 1220 | rte_hash_add_key_with_hash_data(const struct rte_hash *h, |