[dpdk-dev] [PATCH v4 1/2] hash table: fix a bug in rte_hash_iterate()

2018-10-09 Thread Qiaobin Fu
. 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

[dpdk-dev] [PATCH v4 2/2] hash table: add an iterator over conflicting entries

2018-10-09 Thread Qiaobin Fu
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

[dpdk-dev] [PATCH] LPM: add iterator over LPM rules

2018-07-08 Thread Qiaobin Fu
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

[dpdk-dev] [PATCH] hash table: add a bucket iterator function

2018-07-15 Thread Qiaobin Fu
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

[dpdk-dev] [PATCH] hash table: add a bucket iterator function

2018-07-28 Thread Qiaobin Fu
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

[dpdk-dev] [PATCH v3] hash table: add an iterator over conflicting entries

2018-08-30 Thread Qiaobin Fu
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

[dpdk-dev] [PATCH v3] hash table: add an iterator over conflicting entries

2018-08-31 Thread Qiaobin Fu
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