[dpdk-stable] [PATCH] hash: fix incorrect eviction counter

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Thu Sep 21 22:45:22 CEST 2017



> -----Original Message-----
> From: De Lara Guarch, Pablo
> Sent: Thursday, September 21, 2017 6:38 AM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
> Cc: stable at dpdk.org
> Subject: [PATCH] hash: fix incorrect eviction counter
> 
> When adding a new entry in a hash table, there is a maximum number of
> evictions that can be performed. When the counter of these evictions
> reaches this maximum, the entry cannot be added, as it is considered that
> the algorithm has encountered an infinite loop.
> 
> The problem with the current implementation, is that this counter was
> declared as a static variable.
> If there are multiple threads adding entries in the same table or in different
> tables, there should have different counters, one per core and per table.
> 
> Therefore, an array of counter has been added to the hash table structure.
> 
> Fixes: 243e93a5046f ("hash: fix unlimited cuckoo path")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>

Self-NACK. Did not send the patch to dev at dpdk.org, plus the commit message
had a typo.


More information about the stable mailing list