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 BFA165424 for ; Mon, 13 Jun 2016 12:20:35 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP; 13 Jun 2016 03:20:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,466,1459839600"; d="scan'208";a="826917113" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 13 Jun 2016 03:20:34 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 13 Jun 2016 03:20:34 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.181]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.107]) with mapi id 14.03.0248.002; Mon, 13 Jun 2016 18:20:32 +0800 From: "Tan, Jianfeng" To: Yuanhan Liu CC: "dev@dpdk.org" , "rich.lane@bigswitch.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" Thread-Topic: [PATCH v2 4/4] virtio-user: handle ctrl-q in driver Thread-Index: AQHRxT7+ynoljQY+T0e7PVc+FRLgjJ/mqAuAgACHKTA= Date: Mon, 13 Jun 2016 10:20:31 +0000 Message-ID: References: <1462438781-139674-1-git-send-email-jianfeng.tan@intel.com> <1465800223-139122-1-git-send-email-jianfeng.tan@intel.com> <1465800223-139122-5-git-send-email-jianfeng.tan@intel.com> <20160613101409.GS10038@yliu-dev.sh.intel.com> In-Reply-To: <20160613101409.GS10038@yliu-dev.sh.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 v2 4/4] virtio-user: handle ctrl-q in driver 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: Mon, 13 Jun 2016 10:20:36 -0000 > -----Original Message----- > From: Yuanhan Liu [mailto:yuanhan.liu@linux.intel.com] > Sent: Monday, June 13, 2016 6:14 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; rich.lane@bigswitch.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 > Subject: Re: [PATCH v2 4/4] virtio-user: handle ctrl-q in driver >=20 > On Mon, Jun 13, 2016 at 06:43:43AM +0000, Jianfeng Tan wrote: > > In virtio-user driver, when notify ctrl-queue, invoke API of > > virtio-user device emulation to handle ctrl-q command. > > > > Besides, multi-queue requires ctrl-queue and ctrl-queue will be > > enabled automatically when multi-queue is specified. > > > > Signed-off-by: Jianfeng Tan > > --- > > drivers/net/virtio/virtio_user_ethdev.c | 13 +++++++++++++ > > 1 file changed, 13 insertions(+) > > > > diff --git a/drivers/net/virtio/virtio_user_ethdev.c > b/drivers/net/virtio/virtio_user_ethdev.c > > index 8f401a3..4c9279e 100644 > > --- a/drivers/net/virtio/virtio_user_ethdev.c > > +++ b/drivers/net/virtio/virtio_user_ethdev.c > > @@ -42,6 +42,7 @@ > > #include "virtio_logs.h" > > #include "virtio_pci.h" > > #include "virtqueue.h" > > +#include "virtio_rxtx.h" >=20 > What's this include for? It's because hw->cvq->cq needs type of hw->cvq (struct virtnet_ctl). >=20 > --yliu