From: Jianfeng Tan <jianfeng.tan@intel.com>
To: dev@dpdk.org
Cc: Jianfeng Tan <jianfeng.tan@intel.com>,
yuanhan.liu@linux.intel.com, nakajima.yoshihiro@lab.ntt.co.jp,
nhorman@tuxdriver.com
Subject: [dpdk-dev] [PATCH 0/3] add multi queue support for virtio-user
Date: Thu, 5 May 2016 08:59:38 +0000 [thread overview]
Message-ID: <1462438781-139674-1-git-send-email-jianfeng.tan@intel.com> (raw)
This patch set depends on below patch sets:
- http://dpdk.org/ml/archives/dev/2016-April/038111.html
- http://dpdk.org/ml/archives/dev/2016-April/038118.html
- http://dpdk.org/ml/archives/dev/2016-April/038121.html
Add multi queue support for virtio-user virtual port. Patch 1 adds vhost
user adapter communications for enable/disable queues. Patch 2 adds features
check for multi queue and provides a method for virtio-user driver to
enable/disable queues. Patch 3 partially implements ctrl-q to handle
VIRTIO_NET_CTRL_MQ_VQ_PAIRS_SET command from PMD.
Test case:
1. start testpmd with a vhost-user port:
$ TESTPMD -c 0x7 -n 4 --socket-mem 1024,0 --no-pci \
--vdev 'eth_vhost0,iface=/tmp/sock0,queues=2' \
-- -i --rxq=2 --txq=2 --nb-cores=2
2. start testpmd with a virtio-user port:
$ TESTPMD -c 0x70 -n 4 --socket-mem 1024,0 --no-pci --file-prefix=testpmd \
--vdev=virtio-user0,mac=00:01:02:03:04:05,path=/tmp/sock0,queues=2 \
-- -i --rxq=2 --txq=2 --nb-cores=2 --txqflags=0xf01 --disable-hw-vlan
3. use below commands to see if all queues are working:
testpmd> show port xstats all
Jianfeng Tan (3):
virtio-user: add mq in vhost user adapter
virtio-user: add mq in device emulation
virtio-user: add mq in virtual pci driver
drivers/net/virtio/virtio_user/vhost.h | 4 ++
drivers/net/virtio/virtio_user/vhost_user.c | 21 ++++++
drivers/net/virtio/virtio_user/virtio_user_dev.c | 65 ++++++++++++++---
drivers/net/virtio/virtio_user/virtio_user_dev.h | 2 +
drivers/net/virtio/virtio_user/virtio_user_pci.c | 89 +++++++++++++++++++++++-
5 files changed, 170 insertions(+), 11 deletions(-)
--
2.1.4
next reply other threads:[~2016-05-05 8:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 8:59 Jianfeng Tan [this message]
2016-05-05 8:59 ` [dpdk-dev] [PATCH 1/3] virtio-user: add mq in vhost user adapter Jianfeng Tan
2016-05-05 8:59 ` [dpdk-dev] [PATCH 2/3] virtio-user: add mq in device emulation Jianfeng Tan
2016-05-05 8:59 ` [dpdk-dev] [PATCH 3/3] virtio-user: add mq in virtual pci driver Jianfeng Tan
2016-06-13 6:43 ` [dpdk-dev] [PATCH v2 0/4] add multi queue support for virtio-user Jianfeng Tan
2016-06-13 6:43 ` [dpdk-dev] [PATCH v2 1/4] virtio-user: use virtual address in cq Jianfeng Tan
2016-06-13 10:19 ` Yuanhan Liu
2016-06-13 6:43 ` [dpdk-dev] [PATCH v2 2/4] virtio-user: add mq in vhost user adapter Jianfeng Tan
2016-06-13 6:43 ` [dpdk-dev] [PATCH v2 3/4] virtio-user: add ctrl-q and mq in device emulation Jianfeng Tan
2016-06-13 6:43 ` [dpdk-dev] [PATCH v2 4/4] virtio-user: handle ctrl-q in driver Jianfeng Tan
2016-06-13 10:14 ` Yuanhan Liu
2016-06-13 10:20 ` Tan, Jianfeng
2016-06-15 9:07 ` [dpdk-dev] [PATCH v3 0/3] add multi queue support for virtio-user Jianfeng Tan
2016-06-15 9:07 ` [dpdk-dev] [PATCH v3 1/3] virtio-user: add mq in vhost user adapter Jianfeng Tan
2016-06-15 9:07 ` [dpdk-dev] [PATCH v3 2/3] virtio-user: add ctrl-q and mq in device emulation Jianfeng Tan
2016-06-15 9:07 ` [dpdk-dev] [PATCH v3 0/3] virtio-user: handle ctrl-q in driver Jianfeng Tan
2016-06-15 9:54 ` [dpdk-dev] [PATCH v3 0/3] add multi queue support for virtio-user Yuanhan Liu
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=1462438781-139674-1-git-send-email-jianfeng.tan@intel.com \
--to=jianfeng.tan@intel.com \
--cc=dev@dpdk.org \
--cc=nakajima.yoshihiro@lab.ntt.co.jp \
--cc=nhorman@tuxdriver.com \
--cc=yuanhan.liu@linux.intel.com \
/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).