virtio: maintain stats per queue
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 14 Jun 2014 01:06:18 +0000 (18:06 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 22 Jul 2014 13:00:00 +0000 (15:00 +0200)
commit9658d17da27bdaa976f6f04a2fce78537186efda
treecf46b6163ad325c73fbac1f1dcd443c515efdba2
parenta98f77c209ae1b4b761ffb485ad5c3b9f96a1b51
virtio: maintain stats per queue

Avoid cache collision and thrashing of the software statistics
by keeping them per-queue in the driver.

Signed-off-by: Stephen Hemminger <shemming@brocade.com>
Acked-by: Alan Carew <alan.carew@intel.com>
lib/librte_pmd_virtio/virtio_ethdev.c
lib/librte_pmd_virtio/virtio_pci.h
lib/librte_pmd_virtio/virtio_rxtx.c
lib/librte_pmd_virtio/virtqueue.h