From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 252F85A8C for ; Thu, 17 Dec 2015 12:47:49 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 17 Dec 2015 03:47:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,440,1444719600"; d="scan'208";a="709592016" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by orsmga003.jf.intel.com with ESMTP; 17 Dec 2015 03:47:26 -0800 Date: Thu, 17 Dec 2015 19:47:50 +0800 From: Yuanhan Liu To: Tetsuya Mukawa , "Xie, Huawei" Message-ID: <20151217114750.GD29571@yliu-dev.sh.intel.com> References: <1447392031-24970-3-git-send-email-mukawa@igel.co.jp> <1448355603-21275-1-git-send-email-mukawa@igel.co.jp> <1448355603-21275-4-git-send-email-mukawa@igel.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1448355603-21275-4-git-send-email-mukawa@igel.co.jp> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: dev@dpdk.org, ann.zhuangyanying@huawei.com Subject: Re: [dpdk-dev] [PATCH v5 3/3] vhost: Add helper function to convert port id to virtio device pointer 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: Thu, 17 Dec 2015 11:47:50 -0000 On Tue, Nov 24, 2015 at 06:00:03PM +0900, Tetsuya Mukawa wrote: > This helper function is used to convert port id to virtio device > pointer. To use this function, a port should be managed by vhost PMD. > After getting virtio device pointer, it can be used for calling vhost > library APIs. I'm thinking why is that necessary. I mean, hey, can we simply treat it as a normal pmd driver, and don't consider any vhost lib functions any more while using vhost pmd? --yliu