table: fix checking extended buckets in unoptimized case
[dpdk.git] / lib / librte_table / rte_table_hash_key16.c
index f5ec87d..f78db77 100644 (file)
@@ -968,8 +968,7 @@ rte_table_hash_lookup_key16_ext(
                                buckets, keys, f);
                }
 
-               *lookup_hit_mask = pkts_mask_out;
-               return 0;
+               goto grind_next_buckets;
        }
 
        /*
@@ -1060,6 +1059,7 @@ rte_table_hash_lookup_key16_ext(
                bucket20, bucket21, pkts_mask_out, entries,
                buckets_mask, buckets, keys, f);
 
+grind_next_buckets:
        /* Grind next buckets */
        for ( ; buckets_mask; ) {
                uint64_t buckets_mask_next = 0;