From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BACD92C0A for ; Fri, 9 Sep 2016 08:30:32 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP; 08 Sep 2016 23:30:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,304,1470726000"; d="scan'208";a="1047731522" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by orsmga002.jf.intel.com with ESMTP; 08 Sep 2016 23:30:31 -0700 Date: Fri, 9 Sep 2016 14:31:00 +0800 From: Yuanhan Liu To: "Tan, Jianfeng" Cc: dev@dpdk.org, zhihong.wang@intel.com, lining18@jd.com Message-ID: <20160909063100.GR23158@yliu-dev.sh.intel.com> References: <20160906064246.GQ30752@yliu-dev.sh.intel.com> <20160906082011.GA23158@yliu-dev.sh.intel.com> <53e1d78c-e3b0-e16c-992d-e45ed1b31a4f@intel.com> <20160908121818.GO23158@yliu-dev.sh.intel.com> <11291eac-cbbe-7080-3d35-bdacb5341d89@intel.com> <20160909041949.GP23158@yliu-dev.sh.intel.com> <1537a739-9805-cd51-cf0a-f32d608a97e0@intel.com> <20160909060348.GQ23158@yliu-dev.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 2/3] net/virtio_user: fix wrong sequence of messages 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: Fri, 09 Sep 2016 06:30:33 -0000 On Fri, Sep 09, 2016 at 02:24:20PM +0800, Tan, Jianfeng wrote: > > > On 9/9/2016 2:03 PM, Yuanhan Liu wrote: > >>GET_PROTOCOL_FEATURES > >>is not supported yet. I see those features in PROTOCOL_FEATURES is for live > >>migration (right?). > >Not exactly. PROTOCOL_FEATURES was firstly introduced while MQ was > >enabled. Thus it's no wonder MQ is the first protocol feature vhost > >user supports: > > > > [yliu@yliu-dev ~/dpdk]$ gg PROTOCOL_F_ lib/librte_vhost/ > > lib/librte_vhost/vhost_user.h:46:#define VHOST_USER_PROTOCOL_F_MQ 0 > > lib/librte_vhost/vhost_user.h:47:#define VHOST_USER_PROTOCOL_F_LOG_SHMFD 1 > > lib/librte_vhost/vhost_user.h:48:#define VHOST_USER_PROTOCOL_F_RARP 2 > > > > --yliu > > OK, I got it. The maximum of queue pair number is now a parameter of > virtio_user, but we need to depend on PROTOCOL_FEATURES (further, > VHOST_USER_GET_QUEUE_NUM) to maximum queue pair number that vhost can > support. > > Just wonder why not QEMU depends on (1ULL << VIRTIO_NET_F_MQ) inside > features to do that? VIRTIO_NET_F_MQ belongs to virtio spec, while VHOST_USER_PROTOCOL_F_MQ belongs to vhost-user spec. --yliu