DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ouyang Changchun <changchun.ouyang@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [RFC PATCH 6/6] virtio: Resolve for control queue
Date: Thu,  7 May 2015 21:00:45 +0800	[thread overview]
Message-ID: <1431003645-27889-7-git-send-email-changchun.ouyang@intel.com> (raw)
In-Reply-To: <1431003645-27889-1-git-send-email-changchun.ouyang@intel.com>

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(+)

diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c
index 603be2d..603aaa6 100644
--- a/lib/librte_pmd_virtio/virtio_ethdev.c
+++ b/lib/librte_pmd_virtio/virtio_ethdev.c
@@ -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);
-- 
1.8.4.2

      parent reply	other threads:[~2015-05-07 13:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07 13:00 [dpdk-dev] [RFC PATCH 0/6] Support multiple queues in vhost Ouyang Changchun
2015-05-07 13:00 ` [dpdk-dev] [RFC PATCH 1/6] ixgbe: Support VMDq RSS in non-SRIOV environment Ouyang Changchun
2015-05-07 13:00 ` [dpdk-dev] [RFC PATCH 2/6] lib_vhost: Support multiple queues in virtio dev Ouyang Changchun
2015-05-07 13:00 ` [dpdk-dev] [RFC PATCH 3/6] lib_vhost: Set memory layout for multiple queues mode Ouyang Changchun
2015-05-07 13:00 ` [dpdk-dev] [RFC PATCH 4/6] vhost: Add new command line option: rxq Ouyang Changchun
2015-05-07 13:00 ` [dpdk-dev] [RFC PATCH 5/6] vhost: Support multiple queues Ouyang Changchun
2015-05-07 13:00 ` Ouyang Changchun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431003645-27889-7-git-send-email-changchun.ouyang@intel.com \
    --to=changchun.ouyang@intel.com \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).