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 BE1B9A0501; Thu, 5 May 2022 21:55:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7061C4014F; Thu, 5 May 2022 21:55:50 +0200 (CEST) Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [170.10.133.74]) by mails.dpdk.org (Postfix) with ESMTP id C873C40042 for ; Thu, 5 May 2022 21:55:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651780548; 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=CPWJxEkNELntEVZ4P3yDPbpyFWiGE6wGAaTux4e8k3c=; b=Ma/b3b6HHkbjrJFSKT0Mi76Ua7gltRib7m6Q313p5RMC0Joal3QAvROx/bwFmr4Fj/a7LF 3h/21gytxDmO/RBgagvUc+/4e0hjA06i/1oHtYixu0Gz0bIajSWWr9kzBcKBkA9OW0oiMV pmNGWekui2iOVEC5LEoSJJnCYLpCbSI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-258-FsoOLh5fOomvFBH5R96f2Q-1; Thu, 05 May 2022 15:55:45 -0400 X-MC-Unique: FsoOLh5fOomvFBH5R96f2Q-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id BC1FB185A79C; Thu, 5 May 2022 19:55:44 +0000 (UTC) Received: from [10.39.208.18] (unknown [10.39.208.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B793340CF8F5; Thu, 5 May 2022 19:55:43 +0000 (UTC) Message-ID: <684072c9-fe3c-ee25-cd58-3585d1615737@redhat.com> Date: Thu, 5 May 2022 21:55:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH v1 0/2] vhost: add unsafe API to get DMA inflight packets To: xuan.ding@intel.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, cheng1.jiang@intel.com, sunil.pai.g@intel.com References: <20220408102214.11994-1-xuan.ding@intel.com> From: Maxime Coquelin In-Reply-To: <20220408102214.11994-1-xuan.ding@intel.com> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com 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: 7bit 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 4/8/22 12:22, xuan.ding@intel.com wrote: > This patchset introduces an unsafe API to get the number of inflight > packets in DMA engine. It should be only used within the vhost ops > which already holds the lock. Like vring state changes or device is > destroyed. Compared with rte_vhost_async_get_inflight(), this is a > lock free version. > > RFC v1->v1: > * refine the doc and commit log > > Xuan Ding (2): > vhost: add unsafe API to check inflight packets > examples/vhost: use API to check inflight packets > > doc/guides/prog_guide/vhost_lib.rst | 6 ++++++ > doc/guides/rel_notes/release_22_07.rst | 4 ++++ > examples/vhost/main.c | 28 ++++++++++++++------------ > examples/vhost/main.h | 1 - > lib/vhost/rte_vhost_async.h | 17 ++++++++++++++++ > lib/vhost/version.map | 4 ++++ > lib/vhost/vhost.c | 26 ++++++++++++++++++++++++ > 7 files changed, 72 insertions(+), 14 deletions(-) Applied to dpdk-next-virtio/main. Thanks, Maxime