Re: [dpdk-dev] [PATCH] vhost: use SMP memory barrier before kicking guest

2018-06-15 Thread Maxime Coquelin
On 06/07/2018 04:38 PM, Maxime Coquelin wrote: vhost_vring_call() used rte_mb(), which translates into mfence instruction on x86. This patch changes to use rte_smp_mb(), which changed recently to translate into a locked ADD instruction for performance reason. The measured gain is up to 3% wi

Re: [dpdk-dev] [PATCH] vhost: use SMP memory barrier before kicking guest

2018-06-11 Thread Tiwei Bie
On Thu, Jun 07, 2018 at 04:38:26PM +0200, Maxime Coquelin wrote: > vhost_vring_call() used rte_mb(), which translates into > mfence instruction on x86. > > This patch changes to use rte_smp_mb(), which changed recently > to translate into a locked ADD instruction for performance > reason. > > The

[dpdk-dev] [PATCH] vhost: use SMP memory barrier before kicking guest

2018-06-07 Thread Maxime Coquelin
vhost_vring_call() used rte_mb(), which translates into mfence instruction on x86. This patch changes to use rte_smp_mb(), which changed recently to translate into a locked ADD instruction for performance reason. The measured gain is up to 3% with the testpmd benchmarks. Signed-off-by: Maxime Co