hash: fix bucket size usage
Multiwriter insert function was using a fixed value for
the bucket size, instead of using the
RTE_HASH_BUCKET_ENTRIES macro, which value was changed
recently (making it inconsistent in this case).
Fixes: be856325cb
("hash: add scalable multi-writer insertion with Intel TSX")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
243e93a504
commit
94eaebad74
@ -167,7 +167,8 @@ rte_hash_cuckoo_make_space_mw_tm(const struct rte_hash *h,
|
||||
|
||||
/* Cuckoo bfs Search */
|
||||
while (likely(tail != head && head <
|
||||
queue + RTE_HASH_BFS_QUEUE_MAX_LEN - 4)) {
|
||||
queue + RTE_HASH_BFS_QUEUE_MAX_LEN -
|
||||
RTE_HASH_BUCKET_ENTRIES)) {
|
||||
curr_bkt = tail->bkt;
|
||||
for (i = 0; i < RTE_HASH_BUCKET_ENTRIES; i++) {
|
||||
if (curr_bkt->key_idx[i] == EMPTY_SLOT) {
|
||||
|
Loading…
Reference in New Issue
Block a user