numam-dpdk/lib/hash
Vladimir Medvedkin be81f77d80 hash: fix tuple adjustment
rte_thash_adjust_tuple() uses random to generate a new subtuple if
fn() callback reports about collision. In some cases random changes
the subtuple in a way that after complementary bits are applied the
original tuple is obtained. This patch replaces random with subtuple
increment.

Fixes: 28ebff11c2 ("hash: add predictable RSS")
Cc: vladimir.medvedkin@intel.com

Reported-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
Tested-by: Stanislaw Kardach <kda@semihalf.com>
Reviewed-by: Stanislaw Kardach <kda@semihalf.com>
2021-05-10 15:31:42 +02:00
..
meson.build
rte_cmp_arm64.h
rte_cmp_x86.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_crc_arm64.h
rte_cuckoo_hash.c
rte_cuckoo_hash.h
rte_fbk_hash.c
rte_fbk_hash.h
rte_hash_crc.h
rte_hash.h
rte_jhash.h
rte_thash.c
rte_thash.h
version.map