From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 2F08323D for ; Thu, 26 Jul 2018 17:43:50 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D221C21FF8; Thu, 26 Jul 2018 11:43:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 26 Jul 2018 11:43:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=oGp6M1CJNbpKyRjmReJ55UqsdT I+BziFtUlWC+l1sTY=; b=r5tWBKUtJfvYJWU5Bkb+uZMIBhX4o9pXXNZrwlWshK Q1miczFXyPruWSYO3TIAmry1qZQu7kjQg28G6RyRPXDYAP/7MhzxJ+WoUbrDka5h qjq+VT3Rf1cBXHWBJBaSvIkuDv06rlSejwlkIFZubOpUHlC8DV2A+I9/KsxOdTW8 k= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=oGp6M1 CJNbpKyRjmReJ55UqsdTI+BziFtUlWC+l1sTY=; b=N57QJ/jCf1guai3schYAtX hSg9Ol4z/0OixETZ7qtIsNGQuPsA4wau9wDaAAdP9QZB3+9gQVEPLqPWX9zNPeGy 7GLkiWgqlzLJB3iHiJfbaUaMEHNgzpvwxqMyNGGbKsVu+ux3Yr/Z5OsE4zCj6f58 HI8L3sE8HafnhfsvilhD9wpmVSabLtIm94Jw9phEDe3vutsYWgO22ZXDjfcJYbs7 pt/zYWSwcYeBYenU6kJapfkMncu03Dc3I5nq0BVUV9Pf4QJFDBiYAndP5Pgp5cZj B1hxSboknLxHleQ7pvU1ZEj+k5aGHTuNEyclA0OLOI69yrMkVm9zW5XlEDq81opA == X-ME-Proxy: X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 8FE831027B; Thu, 26 Jul 2018 11:43:48 -0400 (EDT) From: Thomas Monjalon To: Maxime Coquelin , "Kulasek, TomaszX" Cc: dev@dpdk.org, "yliu@fridaylinux.org" , "Verkamp, Daniel" , "Harris, James R" , "Wodkowski, PawelX" , "Stojaczyk, DariuszX" Date: Thu, 26 Jul 2018 17:43:44 +0200 Message-ID: <1772643.am7XGmZYjg@xps> In-Reply-To: References: <20180305155959.21212-1-tomaszx.kulasek@intel.com> <3042915272161B4EB253DA4D77EB373A605D3AE5@IRSMSX102.ger.corp.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH] vhost: add API for getting last_idx of vrings 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: Thu, 26 Jul 2018 15:43:50 -0000 What is the status of this patch? 19/04/2018 16:57, Maxime Coquelin: > Hi Tomasz, > > On 03/28/2018 11:31 AM, Kulasek, TomaszX wrote: > > Hi Maxime, > > > >> -----Original Message----- > >> From: Maxime Coquelin [mailto:maxime.coquelin@redhat.com] > >> Sent: Wednesday, March 28, 2018 10:57 > >> To: Kulasek, TomaszX ; yliu@fridaylinux.org > >> Cc: Verkamp, Daniel ; Harris, James R > >> ; Wodkowski, PawelX ; > >> dev@dpdk.org; Stojaczyk, DariuszX > >> Subject: Re: [dpdk-dev] [PATCH] vhost: add API for getting last_idx of vrings > >> > >> Hi Tomasz, > >> > >> On 03/05/2018 04:59 PM, Tomasz Kulasek wrote: > >>> vhost-net devices might keep track of last descriptors indices by > >>> themselves, and assuming they initially start at 0, but that is not the > >>> case for vhost-scsi. Initial last descriptor indices are set via > >>> VHOST_USER_SET_VRING_BASE message, and we cannot possibly predict what > >>> will they be. Setting these to vqueue->used->idx is also not an option, > >>> because there might be some yet unprocessed requests between these and > >>> the actual last_idx. This patch adds API for getting/setting last > >>> descriptor indices of vrings, so that they can be synchronized between > >>> user-device and rte_vhost. > >>> > >>> The last_idx flow could be as following: > >>> > >>> * vhost start, > >>> * received SET_VRING_BASE msg, last_idx is set on rte_vhost side, > >>> * created user-device, last_idx pulled from rte_vhost, > >>> * requests are being processed by user-device, last_idx changes, > >>> * destroyed user-device, last_idx pushed to rte_vhost, > >>> * at this point, vrings could be recreated and another SET_VRING_BASE > >>> message could arrive, so last_idx would be set > >>> * recreated user-device, last_idx pulled from rte_vhost. > >>> > >>> > >>> Signed-off-by: Dariusz Stojaczyk > >>> Signed-off-by: Tomasz Kulasek > >>> --- > >>> lib/librte_vhost/rte_vhost.h | 24 ++++++++++++++++++++++++ > >>> lib/librte_vhost/vhost.c | 27 +++++++++++++++++++++++++++ > >>> 2 files changed, 51 insertions(+) > >>> > >> > >> I agree with the patch, but it is missing the declaration of the new API > >> in rte_vhost_version.map. > >> > >> Thanks, > >> Maxime > > > > Yes, I will send v2. > > Do you plan to send v2 for v18.02? > It can still make it to -rc2 if you post it early next week. > > Thanks, > Maxime > > > Tomasz > > >