[RFC 1/3] hash: move table of hash compare functions out of header
Stephen Hemminger
stephen at networkplumber.org
Fri Aug 22 18:50:45 CEST 2025
On Fri, 22 Aug 2025 11:05:06 +0200
Morten Brørup <mb at smartsharesystems.com> wrote:
> Nice trick explicitly indexing these here; it reduces the risk of not matching the cmp_jump_table_case.
Yes, there were bugs in other code because of table mismatches.
>
> Consider adding static_assert() that RTE_DIM(cmp_jump_table) == NUM_KEY_CMP_CASES.
Since array is explictly sized probably not needed.
More information about the dev
mailing list