[dpdk-dev] [PATCH] virtio: fix wrong queue index for VIRTIO_PCI_QUEUE_SEL

2015-12-10 Thread Yuanhan Liu
On Wed, Dec 09, 2015 at 09:09:27PM +0100, Thomas Monjalon wrote: > 2015-12-08 11:05, Yuanhan Liu: > > We should provide VIRTIO_PCI_QUEUE_SEL with vq->vq_queue_idx, > > but not vq->queue_id. > > > > vq->queue_id is the queue id from rte_eth_rx/tx_queue_setup(), > > which always starts from 0 no mat

[dpdk-dev] [PATCH] virtio: fix wrong queue index for VIRTIO_PCI_QUEUE_SEL

2015-12-09 Thread Thomas Monjalon
2015-12-08 11:05, Yuanhan Liu: > We should provide VIRTIO_PCI_QUEUE_SEL with vq->vq_queue_idx, > but not vq->queue_id. > > vq->queue_id is the queue id from rte_eth_rx/tx_queue_setup(), > which always starts from 0 no matter which queue it is. However, > for virtio, even number is for RX queue, an

[dpdk-dev] [PATCH] virtio: fix wrong queue index for VIRTIO_PCI_QUEUE_SEL

2015-12-08 Thread Yuanhan Liu
We should provide VIRTIO_PCI_QUEUE_SEL with vq->vq_queue_idx, but not vq->queue_id. vq->queue_id is the queue id from rte_eth_rx/tx_queue_setup(), which always starts from 0 no matter which queue it is. However, for virtio, even number is for RX queue, and odd number is for TX queue. Fixes: 5382b