]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_hash/rte_hash.h
hash: add reset function
[dpdk.git] / lib / librte_hash / rte_hash.h
index 936d170f0f71a53831d1b5e01355da2aebc8b031..8bbc9f0fc562be1c8dbd613b9a821ec66a8ef032 100644 (file)
@@ -128,8 +128,15 @@ void
 rte_hash_free(struct rte_hash *h);
 
 /**
- * Add a key to an existing hash table.
- * This operation is not multi-thread safe
+ * Reset all hash structure, by zeroing all entries
+ * @param h
+ *   Hash table to reset
+ */
+void
+rte_hash_reset(struct rte_hash *h);
+
+/**
+ * Add a key to an existing hash table. This operation is not multi-thread safe
  * and should only be called from one thread.
  *
  * @param h