virtio: support multiple queues
authorOuyang Changchun <changchun.ouyang@intel.com>
Thu, 29 May 2014 07:18:20 +0000 (15:18 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 29 May 2014 09:11:24 +0000 (11:11 +0200)
commit823ad647950a7587d3dff29bba731f0f31d6c8a0
treed0245f18675603c0878dd2e09d269cd2c960e07e
parent5591a4a9130dc2dad2563aa088b4e99249690e41
virtio: support multiple queues

This patch supports multiple queues feature in DPDK based virtio-net frontend.
It firstly gets max queue number of virtio-net from virtio PCI configuration and
then send command to negotiate the queue number with backend; When receiving and
transmitting packets, it negotiates multiple virtio-net queues which serve RX/TX;
To utilize this feature, the backend also need support multiple queues feature
and enable it.

Signed-off-by: Ouyang Changchun <changchun.ouyang@intel.com>
Tested-by: Waterman Cao <waterman.cao@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_pmd_virtio/virtio_ethdev.c
lib/librte_pmd_virtio/virtio_ethdev.h
lib/librte_pmd_virtio/virtio_pci.h
lib/librte_pmd_virtio/virtio_rxtx.c
lib/librte_pmd_virtio/virtqueue.h