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 D31635A6F for ; Wed, 3 Jun 2015 04:47:29 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 02 Jun 2015 19:47:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,544,1427785200"; d="scan'208";a="581063633" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by orsmga003.jf.intel.com with ESMTP; 02 Jun 2015 19:47:27 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.224.2; Wed, 3 Jun 2015 10:47:25 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.120]) by shsmsx102.ccr.corp.intel.com ([169.254.2.109]) with mapi id 14.03.0224.002; Wed, 3 Jun 2015 10:47:23 +0800 From: "Xie, Huawei" To: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 2/6] lib_vhost: Support multiple queues in virtio dev Thread-Index: AdCdp54xBBzxLwY/Qza6h/sizCPRYw== Date: Wed, 3 Jun 2015 02:47:23 +0000 Message-ID: References: <1432194581-15301-1-git-send-email-changchun.ouyang@intel.com> <1432194581-15301-3-git-send-email-changchun.ouyang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/6] lib_vhost: Support multiple queues in virtio dev 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, 03 Jun 2015 02:47:30 -0000 =0A= On 5/21/2015 3:51 PM, Ouyang Changchun wrote:=0A= > Each virtio device could have multiple queues, say 2 or 4, at most 8.=0A= > Enabling this feature allows virtio device/port on guest has the ability = to=0A= > use different vCPU to receive/transmit packets from/to each queue.=0A= >=0A= > In multiple queues mode, virtio device readiness means all queues of=0A= > this virtio device are ready, cleanup/destroy a virtio device also=0A= > requires clearing all queues belong to it.=0A= >=0A= > Signed-off-by: Changchun Ouyang =0A= > ---=0A= > lib/librte_vhost/rte_virtio_net.h | 15 ++-=0A= > lib/librte_vhost/vhost_rxtx.c | 32 ++++---=0A= > lib/librte_vhost/vhost_user/vhost-net-user.c | 4 +-=0A= > lib/librte_vhost/vhost_user/virtio-net-user.c | 97 +++++++++++++++----= =0A= > lib/librte_vhost/vhost_user/virtio-net-user.h | 2 +=0A= > lib/librte_vhost/virtio-net.c | 132 +++++++++++++++++---= ------=0A= > 6 files changed, 201 insertions(+), 81 deletions(-)=0A= >=0A= > diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_vir= tio_net.h=0A= > index 5d38185..3e82bef 100644=0A= > --- a/lib/librte_vhost/rte_virtio_net.h=0A= > +++ b/lib/librte_vhost/rte_virtio_net.h=0A= > @@ -59,6 +59,10 @@ struct rte_mbuf;=0A= =0A= Some basic question:=0A= Does vhost have no way to know how many queues each virtio device has?=0A= rte_vhost_q_num_set would set the same number of queues for all virtio=0A= devices, so different virtio devices couldn't have different number of=0A= queues.=0A= =0A= =0A=