[dpdk-dev] [PATCH v2 1/2] virtio: fix queue size and number of descriptors

2015-07-22 Thread Thomas Monjalon
2015-07-20 11:40, Stephen Hemminger: > The number of descriptors can be either zero to use the whole > available ring, or some value smaller. This is used to limit > the number of mbufs allocated for the receive ring. If more > descriptors are requested than available the size is silently > truncat

[dpdk-dev] [PATCH v2 1/2] virtio: fix queue size and number of descriptors

2015-07-21 Thread Ouyang, Changchun
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Tuesday, July 21, 2015 2:41 AM > To: Ouyang, Changchun > Cc: dev at dpdk.org; Stephen Hemminger > Subject: [PATCH v2 1/2] virtio: fix queue size and number of descriptors > > The virtual queue r

[dpdk-dev] [PATCH v2 1/2] virtio: fix queue size and number of descriptors

2015-07-20 Thread Stephen Hemminger
The virtual queue ring size and the number of slots actually usable are separate parameters. In the most common environment (QEMU) the virtual queue ring size is 256, but some environments the ring maybe much larger. The ring size comes from the host and the driver must use the actual size passed.