From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] net/vhost: Add function to retreive the 'vid' for a given port id. Date: Tue, 13 Sep 2016 17:10:09 +0200 Message-ID: <28342659.xFrdpVFeBf@xps13> References: <1473774463-26966-1-git-send-email-ciara.loftus@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Ciara Loftus Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 6C993E6D for ; Tue, 13 Sep 2016 17:10:12 +0200 (CEST) Received: by mail-wm0-f43.google.com with SMTP id c131so117672050wmh.0 for ; Tue, 13 Sep 2016 08:10:12 -0700 (PDT) In-Reply-To: <1473774463-26966-1-git-send-email-ciara.loftus@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-09-13 14:47, Ciara Loftus: > 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. I think we should not add any API to the PMDs. Maybe you are looking for a generic API in ethdev.