Re: [dpdk-dev] [PATCH v3] hash: fix tuple adjustment

2021-05-10 Thread Thomas Monjalon
06/05/2021 13:40, Vladimir Medvedkin: > 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 ra

[dpdk-dev] [PATCH v3] hash: fix tuple adjustment

2021-05-06 Thread Vladimir Medvedkin
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: 28ebff11