From: Matus Fabian Date: Wed, 19 Feb 2025 20:44:36 +0000 (-0500) Subject: vppinfra: bihash_vec8_8 set key in mark_free X-Git-Tag: v25.10-rc0~195 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=67067e18c862bafeed1921e13381af89885bde79;p=vpp.git vppinfra: bihash_vec8_8 set key in mark_free When key not set to ~0 clib_bihash_key_compare_vec8_8 do not skip empty slot during search and we crash. Type: fix Change-Id: I48f510bceffcfb5e4851dd757cad055a6f7f12d0 Signed-off-by: Matus Fabian --- diff --git a/src/vppinfra/bihash_vec8_8.h b/src/vppinfra/bihash_vec8_8.h index 822f1bcc51f..1532103e9c1 100644 --- a/src/vppinfra/bihash_vec8_8.h +++ b/src/vppinfra/bihash_vec8_8.h @@ -46,6 +46,7 @@ static inline void clib_bihash_mark_free_vec8_8 (clib_bihash_kv_vec8_8_t *v) { v->value = 0xFEEDFACE8BADF00DULL; + v->key = ~0ULL; } /** Decide if a clib_bihash_kv_vec8_8_t instance is free