Use of modern hash() functions in Suricata which can be offloaded to hardware

It would be nice if Suricata could migrate to use a modern hash algorithm which can be offloaded to CPU instructions in most of the ARM/x86/MIPS CPU’s. I think Suricata currently uses Jenkin’s hash.

DPDK does have a hash library which can use CRC32-C on x86_64 CPU’s. As per smhasher, CRC32 has higher number of collisions. Other options to explore include xxhash

Different hash benchmark results:

1 Like