From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH 09/17] vhost: turn queue pair to vring Date: Tue, 14 Mar 2017 13:31:36 +0100 Message-ID: <1bf71471-13ed-1995-a9a2-bed5491c79e3@redhat.com> References: <1488534682-3494-1-git-send-email-yuanhan.liu@linux.intel.com> <1488534682-3494-10-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 6064D5598 for ; Tue, 14 Mar 2017 13:31:42 +0100 (CET) In-Reply-To: <1488534682-3494-10-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: > The queue pair is very virtio-net specific, other devices don't have > such concept. To make it generic, we should log the number of vrings > instead of the number of queue pairs. > > This patch just does a simple convert, a later patch would export the > number of vrings to applications. > > Signed-off-by: Yuanhan Liu > --- > lib/librte_vhost/vhost.c | 74 ++++++++++++++----------------------------- > lib/librte_vhost/vhost.h | 4 +-- > lib/librte_vhost/vhost_user.c | 28 +++++----------- > lib/librte_vhost/virtio_net.c | 10 +++--- > 4 files changed, 38 insertions(+), 78 deletions(-) > Nice. Making it generic simplifies the net specific code. Reviewed-by: Maxime Coquelin Thanks, Maxime