vhost: improve batched copies performance
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 29 May 2018 09:45:14 +0000 (11:45 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commitc89e52d9c86e585380eb4e96e7fb7de969033e74
tree0cfb5e90d3810feef76cad890861a0ef989bf006
parent24e4844048e129a1c8b95f86643c9a5ff780204e
vhost: improve batched copies performance

Instead of copying batch_copy_nb_elems into the stack,
this patch uses it directly.

Small performance gain of 3% is seen when running PVP
benchmark.

Acked-by: Zhihong Wang <zhihong.wang@intel.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c