net/virtio: fix Rx stats with vectorized functions
authorThibaut Collet <thibaut.collet@6wind.com>
Wed, 11 Sep 2019 16:04:08 +0000 (18:04 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 7 Oct 2019 13:00:57 +0000 (15:00 +0200)
commit6958e40dbc189ccd287983ea91e257d5ccf26810
treefaa905ab257210fe655f19545f0147cbcaa735b0
parent5d9dc18e1bccfe74c6fc962042d01147b49a5bed
net/virtio: fix Rx stats with vectorized functions

With vectorized functions, only the rx stats for number of packets is
incremented.
Update also the other statistics.
Performance impact is about 2%

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.c
drivers/net/virtio/virtio_rxtx.h
drivers/net/virtio/virtio_rxtx_simple_neon.c
drivers/net/virtio/virtio_rxtx_simple_sse.c