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 lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_cmp_arm64.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_cmp_x86.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_crc_arm64.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_cuckoo_hash.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_cuckoo_hash.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_fbk_hash.c lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_fbk_hash.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_hash_crc.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_hash.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_jhash.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_thash.c hash: fix tuple adjustment 2021-05-10 15:31:42 +02:00
rte_thash.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00