Skip to content

table: fix bugs occuring in corner cases

Balazs Nemeth dpdk-dev 1 version Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4table: fix empty bucket removal during entry deletion in rte_table_hash_extlib/librte_table/rte_table_hash_ext.c+3 -30 replies
2/4table: fix checking extended buckets in unoptimized caselib/librte_table/rte_table_hash_key16.c lib/librte_table/rte_table_hash_key32.c lib/librte_table/rte_table_hash_key8.c+8 -80 replies
3/4table: fix incorrect t->data_size_shl initializationlib/librte_table/rte_table_hash_ext.c lib/librte_table/rte_table_hash_lru.c+2 -20 replies
4/4table: fix pointer calculations at initializationlib/librte_table/rte_table_hash_ext.c lib/librte_table/rte_table_hash_lru.c+4 -60 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCristian Dumitrescu
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] table: fix bugs occuring in corner cases

This set of patches fixes bugs in the packet framework. Some of the bugs occur in corner cases (i.e. when a lookup is performed on a few packets or when buckets are in extended states) while others can cause memory to be accessed beyond what is reserved during initialization time.

Balazs Nemeth (4):
table: fix empty bucket removal during entry deletion in
rte_table_hash_ext
table: fix checking extended buckets in unoptimized case
table: fix incorrect t->data_size_shl initialization
table: fix pointer calculations at initialization

 lib/librte_table/rte_table_hash_ext.c   | 13 ++++++-------
 lib/librte_table/rte_table_hash_key16.c |  4 ++--
 lib/librte_table/rte_table_hash_key32.c |  4 ++--
 lib/librte_table/rte_table_hash_key8.c  |  8 ++++----
 lib/librte_table/rte_table_hash_lru.c   |  7 +++----
 5 files changed, 17 insertions(+), 19 deletions(-)
Signature · 1 line
2.1.0