[dpdk-dev,RFC,6/6] virtio: Resolve for control queue
Commit Message
Control queue can't work for vhost-user mulitple queue mode,
so workaround to return a value directly in send_command function.
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
---
lib/librte_pmd_virtio/virtio_ethdev.c | 6 ++++++
1 file changed, 6 insertions(+)
@@ -128,6 +128,12 @@ virtio_send_command(struct virtqueue *vq, struct virtio_pmd_ctrl *ctrl,
return -1;
}
+ /*
+ * FIXME: The control queue doesn't work for vhost-user
+ * multiple queue, workaround it to return directly.
+ */
+ return 0;
+
PMD_INIT_LOG(DEBUG, "vq->vq_desc_head_idx = %d, status = %d, "
"vq->hw->cvq = %p vq = %p",
vq->vq_desc_head_idx, status, vq->hw->cvq, vq);