> -----Original Message-----
> From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com]
> Sent: Saturday, November 10, 2018 10:56 AM
> To: Richardson, Bruce <bruce.richard...@intel.com>; De Lara Guarch, Pablo
> <pablo.de.lara.gua...@intel.com>
> Cc: dev@dpdk.org; jerin.ja...@caviumnetworks.com;
> hemant.agra...@nxp.com; chao...@linux.vnet.ibm.com; Wang, Yipeng1
> <yipeng1.w...@intel.com>; dharmik.thak...@arm.com; gavin...@arm.com;
> honnappa.nagaraha...@arm.com; n...@arm.com
> Subject: [PATCH v2 1/1] hash: separate lf and rw lock lookup code paths
> 
> The lock-free algorithm has caused significant lookup performance
> regression for certain use cases. The regression is attributed to the use of
> non-relaxed memory orderings. 2 versions of the lookup functions are
> created. One that uses the RW lock and the one that is lock-free. This
> restores the performance regression caused for use cases that used RW lock
> version of the lookup function.
> 
> Fixes: e605a1d36 ("hash: add lock-free r/w concurrency")
> Cc: honnappa.nagaraha...@arm.com
> 
> Suggested-by: Jerin Jacob <jerin.ja...@caviumnetworks.com>
> Signed-off-by: Honnappa Nagarahalli <honnappa.nagaraha...@arm.com>
> Reviewed-by: Ola Liljedahl <ola.liljed...@arm.com>
> Reviewed-by: Gavin Hu <gavin...@arm.com>
> ---
[Wang, Yipeng] 
I tested my modified l3fwd with this new patch applied on x86 platform and it 
does
not cause any performance drop anymore.

There are extra code duplication though but I believe in future version together
with fined-grained lock, the duplication could be fixed later.


Reply via email to