.
3. The position that was once not empty is now empty.
BUG because next_key is invalid.
This patch fixes this small bug.
Signed-off-by: Qiaobin Fu
Reviewed-by: Michel Machado
---
lib/librte_hash/rte_cuckoo_hash.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib
insertion failure.
v4:
* Fix the style issue
* Follow the ABI updates
v3:
* Make the rte_hash_iterate() API similar to
rte_hash_iterate_conflict_entries()
v2:
* Fix the style issue
* Make the API more universal
Signed-off-by: Qiaobin Fu
Reviewed-by: Cody Doucette
Reviewed-by: Michel Machado
Add an iterator over the LPM rules.
The iterator requires a prefix as a parameter and
lists all entries as long as the given prefix (or longer).
Signed-off-by: Qiaobin Fu
Reviewed-by: Cody Doucette
Reviewed-by: Michel Machado
---
lib/librte_lpm/rte_lpm.c | 99
incoming
entry is more valuable than the entries already in the hash table.
Signed-off-by: Qiaobin Fu
Reviewed-by: Cody Doucette
Reviewed-by: Michel Machado
---
lib/librte_hash/rte_cuckoo_hash.c | 60
lib/librte_hash/rte_hash.h| 66
incoming
entry is more valuable than the entries already in the hash table.
Signed-off-by: Qiaobin Fu
Reviewed-by: Cody Doucette
Reviewed-by: Michel Machado
---
lib/librte_hash/rte_cuckoo_hash.c| 60 +
lib/librte_hash/rte_hash.h | 66
failure.
v3:
* Make the rte_hash_iterate() API similar to
rte_hash_iterate_conflict_entries()
v2:
* Fix the style issue
* Make the API more universal
Signed-off-by: Qiaobin Fu
Reviewed-by: Cody Doucette
Reviewed-by: Michel Machado
Reviewed-by: Keith Wiles
Reviewed-by: Yipeng Wang
Reviewed
failure.
v3:
* Make the rte_hash_iterate() API similar to
rte_hash_iterate_conflict_entries()
v2:
* Fix the style issue
* Make the API more universal
Signed-off-by: Qiaobin Fu
Reviewed-by: Cody Doucette
Reviewed-by: Michel Machado
Reviewed-by: Keith Wiles
Reviewed-by: Yipeng Wang
Reviewed
7 matches
Mail list logo