[dpdk-dev] [PATCH 02/12] virtio: setup and start cq in configure callback

2016-07-22 Thread Olivier Matz
On 07/21/2016 11:15 PM, Stephen Hemminger wrote: > On Thu, 21 Jul 2016 10:08:20 +0200 > Olivier Matz wrote: > >> +dev_info->max_rx_queues = (uint16_t) >> +((VIRTIO_MAX_RX_QUEUES < hw->max_queue_pairs) ? >> +VIRTIO_MAX_RX_QUEUES : hw->max_queue_pairs); >> +

[dpdk-dev] [PATCH 02/12] virtio: setup and start cq in configure callback

2016-07-21 Thread Stephen Hemminger
On Thu, 21 Jul 2016 10:08:20 +0200 Olivier Matz wrote: > + dev_info->max_rx_queues = (uint16_t) > + ((VIRTIO_MAX_RX_QUEUES < hw->max_queue_pairs) ? > + VIRTIO_MAX_RX_QUEUES : hw->max_queue_pairs); > + dev_info->max_tx_queues = (uint16_t) > + ((V

[dpdk-dev] [PATCH 02/12] virtio: setup and start cq in configure callback

2016-07-21 Thread Olivier Matz
Move the configuration of control queue in the configure callback. This is needed by next commit, which introduces the reinitialization of the device in the configure callback to change the feature flags. Therefore, the control queue will have to be restarted at the same place. As virtio_dev_cq_qu