From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id B9D6DFFA for ; Thu, 29 Sep 2016 14:07:50 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP; 29 Sep 2016 05:07:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,414,1470726000"; d="scan'208";a="1063932396" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga002.fm.intel.com with ESMTP; 29 Sep 2016 05:07:49 -0700 Date: Thu, 29 Sep 2016 20:08:44 +0800 From: Yuanhan Liu To: "Mcnamara, John" Cc: "Loftus, Ciara" , "dev@dpdk.org" , "Liu, Yuanhan" Message-ID: <20160929120844.GK1597@yliu-dev.sh.intel.com> References: <1473774463-26966-1-git-send-email-ciara.loftus@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] net/vhost: Add function to retreive the 'vid' for a given port id. 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, 29 Sep 2016 12:07:51 -0000 On Thu, Sep 29, 2016 at 09:21:11AM +0000, Mcnamara, John wrote: > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ciara Loftus > > Sent: Tuesday, September 13, 2016 2:48 PM > > To: dev@dpdk.org > > Subject: [dpdk-dev] [PATCH] net/vhost: Add function to retreive the 'vid' > > for a given port id. > > > > In some cases when using the vHost PMD, certain vHost library functions > > may still need to be accessed. One such example is the > > rte_vhost_get_queue_num function which returns the number of virtqueues > > reported by the guest - information which is not exposed by the PMD. > > > > This commit introduces a new rte_eth_vhost function that returns the 'vid' > > associated with a given port id. This allows the PMD user to call vHost > > library functions which require the 'vid' value. > > > > Signed-off-by: Ciara Loftus > > Acked-by: John McNamara Applied to dpdk-next-virtio, with a fix to fixing missing ";" for the map file (again, caught by my robot). --yliu --- +DPDK_16.11 { + global: + + rte_eth_vhost_get_vid_from_port_id; +}