From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas.monjalon@6wind.com>
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 <dev@dpdk.org>; Tue, 13 Sep 2016 17:10:12 +0200 (CEST)
Received: by mail-wm0-f43.google.com with SMTP id c131so117672050wmh.0
 for <dev@dpdk.org>; Tue, 13 Sep 2016 08:10:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=6wind-com.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:date:message-id:user-agent:in-reply-to
 :references:mime-version:content-transfer-encoding;
 bh=csrOKdQqlL5XE+c/cYvqZeM8V2zJ1+R2M8zzvE4SNo4=;
 b=r0SI/bk/YfB3e85NRti8SjQpxLscVmZJ5Y8sKXwCR+I3zPiK/ArdPD6ZqAccjd3gVl
 lseS1mrcvsuy3SWo47JUkg96nOklhyfsZTsiqoou1g3kNCSDdAJXxJRU6PySlb1LjNkz
 rnT8Ej/OPBJmhKO/TMNT92FzP0LGra1zb13Zk/osxAN5wZi9LTysZJUo0JycALaJHhV0
 4cM/Nk4QeEO+Gee+SDNCpneRKu8ZBMiw+bLVs0zayRFviQzRbnxtEnlwVCCcZzYCELRX
 LO9etdRGP0jwcy9y21YZzG5aCoEunoNDc0Bxggx1BxSNUzRndPxVWgdMPLWH3YIC1tqT
 oUOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent
 :in-reply-to:references:mime-version:content-transfer-encoding;
 bh=csrOKdQqlL5XE+c/cYvqZeM8V2zJ1+R2M8zzvE4SNo4=;
 b=TslyGlw1QmzbWstcg92wg7u5q5XotJEHSX9x5aSEuG3+nW3yenjkm5Hgn3PThgCnMi
 5zOOd4p8r3GmIAIHYLIUMUMyxPp2+zqdlw42+aFXi1tnm4Y3WYZrPEtSSw4cYBB6p9Z8
 OLDYnNBK8pFMvqi495x0QE/2qQzyJygAX1r0Zc1oL0iyCtQYd/pX9ysFFYRl2Dkjg4tC
 nfES7B30OL56q7UyESQeQDwcOLDcQU+QU9zQpILlIYOh2Xn0a5H6g7flRtY5pD0PKslx
 /b2LXCzmrzg+1wzBsEtVYDGHe/8hp1o4SLBRLUkCDZzUV5UcD75UzOCHhw1RZHATrMmW
 OpMQ==
X-Gm-Message-State: AE9vXwOLAiBq3p8gDh8fFdLnqUzSCXP4r2R28dikq4u/O5kz318r52ieeaR0249Z4GDa8gs1
X-Received: by 10.194.191.162 with SMTP id gz2mr19693012wjc.182.1473779411391; 
 Tue, 13 Sep 2016 08:10:11 -0700 (PDT)
Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184])
 by smtp.gmail.com with ESMTPSA id 142sm23408886wmh.12.2016.09.13.08.10.10
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 13 Sep 2016 08:10:10 -0700 (PDT)
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Ciara Loftus <ciara.loftus@intel.com>
Cc: dev@dpdk.org
Date: Tue, 13 Sep 2016 17:10:09 +0200
Message-ID: <28342659.xFrdpVFeBf@xps13>
User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; )
In-Reply-To: <1473774463-26966-1-git-send-email-ciara.loftus@intel.com>
References: <1473774463-26966-1-git-send-email-ciara.loftus@intel.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Sep 2016 15:10:12 -0000

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.