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

Wang, Yipeng1 yipeng1.wang at intel.com
Wed May 5 19:57:43 CEST 2021


> -----Original Message-----
> From: Medvedkin, Vladimir <vladimir.medvedkin at intel.com>
> Sent: Tuesday, May 4, 2021 7:25 AM
> To: dev at dpdk.org
> Cc: Ananyev, Konstantin <konstantin.ananyev at intel.com>; Chilikin, Andrey
> <andrey.chilikin at intel.com>; Kinsella, Ray <ray.kinsella at intel.com>; Wang,
> Yipeng1 <yipeng1.wang at intel.com>; Gobriel, Sameh
> <sameh.gobriel at intel.com>; Richardson, Bruce
> <bruce.richardson at intel.com>; david.marchand at redhat.com;
> kda at semihalf.com; Medvedkin, Vladimir <vladimir.medvedkin at intel.com>
> Subject: [PATCH v2] 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: 28ebff11c2dc ("hash: add predictable RSS")
> Cc: vladimir.medvedkin at intel.com
> 
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
> ---
Acked-by: Yipeng Wang <yipeng1.wang at intel.com>


More information about the dev mailing list