git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx5: handle Rx CQE compression
[dpdk.git]
/
lib
/
librte_hash
/
rte_hash.h
diff --git
a/lib/librte_hash/rte_hash.h
b/lib/librte_hash/rte_hash.h
index
85fc416
..
c9612fb
100644
(file)
--- a/
lib/librte_hash/rte_hash.h
+++ b/
lib/librte_hash/rte_hash.h
@@
-60,6
+60,9
@@
extern "C" {
/** Enable Hardware transactional memory support. */
#define RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT 0x01
/** Enable Hardware transactional memory support. */
#define RTE_HASH_EXTRA_FLAGS_TRANS_MEM_SUPPORT 0x01
+/** Default behavior of insertion, single writer/multi writer */
+#define RTE_HASH_EXTRA_FLAGS_MULTI_WRITER_ADD 0x02
+
/** Signature of key that is stored internally. */
typedef uint32_t hash_sig_t;
/** Signature of key that is stored internally. */
typedef uint32_t hash_sig_t;
@@
-114,7
+117,7
@@
rte_hash_create(const struct rte_hash_parameters *params);
* in multi-process mode.
*
* @param h
* in multi-process mode.
*
* @param h
- * Hash table
to reset
+ * Hash table
for which the function is to be changed
* @param func
* New compare function
*/
* @param func
* New compare function
*/
@@
-362,8
+365,6
@@
rte_hash_lookup_with_hash(const struct rte_hash *h,
hash_sig_t
rte_hash_hash(const struct rte_hash *h, const void *key);
hash_sig_t
rte_hash_hash(const struct rte_hash *h, const void *key);
-#define rte_hash_lookup_multi rte_hash_lookup_bulk
-#define rte_hash_lookup_multi_data rte_hash_lookup_bulk_data
/**
* Find multiple keys in the hash table.
* This operation is multi-thread safe.
/**
* Find multiple keys in the hash table.
* This operation is multi-thread safe.