net/virtio: get all pending Rx packets in vectorized paths
authorThibaut Collet <thibaut.collet@6wind.com>
Wed, 11 Sep 2019 16:04:09 +0000 (18:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:57 +0000 (15:00 +0200)
commit016f56b5bc503be2f2286d2c7f5e5eb4200ffb6d
tree476ee24cc94bab4e3f32d4840edd4037aee847a3
parent6958e40dbc189ccd287983ea91e257d5ccf26810
net/virtio: get all pending Rx packets in vectorized paths

The loop to read packets does not take all packets as the number of
available packets (nb_used) is decremented in the loop.
Take all available packets provides a performance improvement of 3%.

Fixes: fc3d66212fed ("virtio: add vector Rx")
Cc: stable@dpdk.org
Signed-off-by: Thibaut Collet <thibaut.collet@6wind.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx_simple_neon.c
drivers/net/virtio/virtio_rxtx_simple_sse.c