On 12/20/18 5:47 PM, Maxime Coquelin wrote:
Instead of writing back descriptors chains in order, let's
write the first chain flags last in order to improve batching.

Also, move the write barrier in logging cache sync, so that it
is done only when logging is enabled. It means there is now
one more barrier for split ring when logging is enabled.

With Kernel's pktgen benchmark, ~3% performance gain is measured.

Signed-off-by: Maxime Coquelin<maxime.coque...@redhat.com>
---
  lib/librte_vhost/vhost.h      |  2 ++
  lib/librte_vhost/virtio_net.c | 19 ++++++++++++++++---
  2 files changed, 18 insertions(+), 3 deletions(-)

Applied to dpdk-next-virtio

Maxime

Reply via email to