From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8BE40461F7; Tue, 14 Mar 2017 12:31:42 +0000 (UTC) Received: from [10.36.116.175] (ovpn-116-175.ams2.redhat.com [10.36.116.175]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v2ECVcgg009292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 14 Mar 2017 08:31:40 -0400 To: Yuanhan Liu , dev@dpdk.org References: <1488534682-3494-1-git-send-email-yuanhan.liu@linux.intel.com> <1488534682-3494-10-git-send-email-yuanhan.liu@linux.intel.com> Cc: Harris James R , Liu Changpeng From: Maxime Coquelin Message-ID: <1bf71471-13ed-1995-a9a2-bed5491c79e3@redhat.com> Date: Tue, 14 Mar 2017 13:31:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1488534682-3494-10-git-send-email-yuanhan.liu@linux.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 14 Mar 2017 12:31:42 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH 09/17] vhost: turn queue pair to vring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2017 12:31:42 -0000 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