From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 69E0842C04; Thu, 1 Jun 2023 16:00:19 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5930840DDC; Thu, 1 Jun 2023 16:00:19 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id C35B1406BA for ; Thu, 1 Jun 2023 16:00:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1685628017; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=d4jsmRrVPkbop2FCFjWg7vDqX15QnVwdIRbtVRWAHKc=; b=BKJPhOknpr7xxJ6FubaigeI9dAk9eWAwiqQyLeJ9Akq6aXQZN72zcJK8V7+VJ9X/gydQFa 45xiPjM7+AUmIn/gFNj7/7FEbvVydqqq5X+IwLPNYeVDxdxDig6tYjbJZqFB+qDcoVsp/z Z1G+1AOkq/fTvUTOUBDvfPObVkYjI40= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-395-8eUfpkLIP8CF_SWdEer40w-1; Thu, 01 Jun 2023 10:00:14 -0400 X-MC-Unique: 8eUfpkLIP8CF_SWdEer40w-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9904238294AC; Thu, 1 Jun 2023 14:00:13 +0000 (UTC) Received: from [10.39.208.25] (unknown [10.39.208.25]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 114BE14171BC; Thu, 1 Jun 2023 14:00:09 +0000 (UTC) Message-ID: <7f72500a-5317-c66d-3f36-2fd65c874b47@redhat.com> Date: Thu, 1 Jun 2023 16:00:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 15/28] vhost: add API to set max queue pairs To: David Marchand Cc: dev@dpdk.org, chenbo.xia@intel.com, mkp@redhat.com, fbl@redhat.com, jasowang@redhat.com, cunming.liang@intel.com, xieyongji@bytedance.com, echaudro@redhat.com, eperezma@redhat.com, amorenoz@redhat.com, lulu@redhat.com References: <20230525162551.70359-1-maxime.coquelin@redhat.com> <20230525162551.70359-16-maxime.coquelin@redhat.com> From: Maxime Coquelin In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 5/26/23 10:58, David Marchand wrote: > On Thu, May 25, 2023 at 6:27 PM Maxime Coquelin > wrote: >> diff --git a/doc/guides/prog_guide/vhost_lib.rst b/doc/guides/prog_guide/vhost_lib.rst >> index e8bb8c9b7b..cd4b109139 100644 >> --- a/doc/guides/prog_guide/vhost_lib.rst >> +++ b/doc/guides/prog_guide/vhost_lib.rst >> @@ -334,6 +334,10 @@ The following is an overview of some key Vhost API functions: >> Clean DMA vChannel finished to use. After this function is called, >> the specified DMA vChannel should no longer be used by the Vhost library. >> >> +* ``rte_vhost_driver_set_max_queue_num(path, max_queue_pairs)`` >> + >> + Set the maximum number of queue pairs supported by the device. >> + >> Vhost-user Implementations >> -------------------------- >> >> diff --git a/doc/guides/rel_notes/release_23_07.rst b/doc/guides/rel_notes/release_23_07.rst >> index a9b1293689..fa889a5ee7 100644 >> --- a/doc/guides/rel_notes/release_23_07.rst >> +++ b/doc/guides/rel_notes/release_23_07.rst >> @@ -55,6 +55,11 @@ New Features >> Also, make sure to start the actual text at the margin. >> ======================================================= >> >> +* **Added Vhost API to set maximum queue pairs supported > > **Added Vhost API to set maximum queue pairs supported.** Fixed. Thanks, Maxime > >> + >> + Introduced ``rte_vhost_driver_set_max_queue_num()`` to be able to limit the >> + maximum number of supported queue pairs, required for VDUSE support. >> + >> >> Removed Items >> ------------- >