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

Thomas Monjalon thomas at monjalon.net
Wed May 5 12:16:34 CEST 2021


04/05/2021 16:25, 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: 28ebff11c2dc ("hash: add predictable RSS")
> Cc: vladimir.medvedkin at intel.com
> 
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
> ---
>  lib/hash/rte_thash.c | 121 ++++++++++++++++++++++++++++++++++++++++++---------
>  1 file changed, 100 insertions(+), 21 deletions(-)

Waiting for a review.
It is a complex change.





More information about the dev mailing list