From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id CE1D4C37C for ; Wed, 15 Jun 2016 11:07:28 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 15 Jun 2016 02:07:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,475,1459839600"; d="scan'208";a="719348137" Received: from dpdk06.sh.intel.com ([10.239.128.225]) by FMSMGA003.fm.intel.com with ESMTP; 15 Jun 2016 02:07:27 -0700 From: Jianfeng Tan To: dev@dpdk.org Cc: Jianfeng Tan , rich.lane@bigswitch.com, yuanhan.liu@linux.intel.com, mst@redhat.com, nakajima.yoshihiro@lab.ntt.co.jp, p.fedin@samsung.com, ann.zhuangyanying@huawei.com, mukawa@igel.co.jp, nhorman@tuxdriver.com Date: Wed, 15 Jun 2016 09:07:14 +0000 Message-Id: <1465981637-38015-1-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1462438781-139674-1-git-send-email-jianfeng.tan@intel.com> References: <1462438781-139674-1-git-send-email-jianfeng.tan@intel.com> Subject: [dpdk-dev] [PATCH v3 0/3] add multi queue support for virtio-user X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 09:07:29 -0000 v3: - Fix compiling issue on 32-bit system. - Fix a segment fault issue when sending VHOST_USER_SET_VRING_ENABLE. - Squash the patch (use virtual address in mq) into "virtio for container" patch series. v2: - Move the ctrl queue handler and multi queue logic into device emulation. - Rebase on newest code. 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 ctrl-q and mq in device emulation virtio-user: handle ctrl-q in driver drivers/net/virtio/virtio_user/vhost.h | 5 + drivers/net/virtio/virtio_user/vhost_user.c | 22 ++++ drivers/net/virtio/virtio_user/virtio_user_dev.c | 124 +++++++++++++++++++++-- drivers/net/virtio/virtio_user/virtio_user_dev.h | 2 +- drivers/net/virtio/virtio_user_ethdev.c | 13 +++ 5 files changed, 156 insertions(+), 10 deletions(-) -- 2.1.4