From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH 10/17] vhost: export the number of vrings Date: Tue, 14 Mar 2017 13:33:14 +0100 Message-ID: References: <1488534682-3494-1-git-send-email-yuanhan.liu@linux.intel.com> <1488534682-3494-11-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Harris James R , Liu Changpeng To: Yuanhan Liu , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 4E8135599 for ; Tue, 14 Mar 2017 13:33:19 +0100 (CET) In-Reply-To: <1488534682-3494-11-git-send-email-yuanhan.liu@linux.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 03/03/2017 10:51 AM, Yuanhan Liu wrote: > We used to use rte_vhost_get_queue_num() for telling how many vrings. > However, the return value is the number of "queue pairs", which is > very virtio-net specific. To make it generic, we should return the > number of vrings instead, and let the driver do the proper translation. > Say, virtio-net driver could turn it to the number of queue pairs by > dividing 2. > > Meanwhile, mark rte_vhost_get_queue_num as deprecated. > > Signed-off-by: Yuanhan Liu > --- > drivers/net/vhost/rte_eth_vhost.c | 2 +- > lib/librte_vhost/rte_vhost_version.map | 1 + > lib/librte_vhost/rte_virtio_net.h | 17 +++++++++++++++++ > lib/librte_vhost/vhost.c | 11 +++++++++++ > 4 files changed, 30 insertions(+), 1 deletion(-) Reviewed-by: Maxime Coquelin Thanks, Maxime