[dpdk-dev] [PATCH v2 04/10] net/virtio: allocate queue at init stage

2016-11-07 Thread Thomas Monjalon
2016-11-05 17:40, Yuanhan Liu: > -int virtio_dev_queue_setup(struct rte_eth_dev *dev, > - int queue_type, > - uint16_t queue_idx, > - uint16_t vtpci_queue_idx, > - uint16_t nb_desc, > - unsigned int

[dpdk-dev] [PATCH v2 04/10] net/virtio: allocate queue at init stage

2016-11-05 Thread Yuanhan Liu
Queue allocation should be done once, since the queue related info (such as vring addreess) will only be informed to the vhost-user backend once without virtio device reset. That means, if you allocate queues again after the vhost-user negotiation, the vhost-user backend will not be informed any