From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id B983CA0C51;
	Wed, 21 Jul 2021 16:24:00 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 596D34014D;
	Wed, 21 Jul 2021 16:24:00 +0200 (CEST)
Received: from us-smtp-delivery-124.mimecast.com
 (us-smtp-delivery-124.mimecast.com [170.10.133.124])
 by mails.dpdk.org (Postfix) with ESMTP id 5CAFE40143
 for <dev@dpdk.org>; Wed, 21 Jul 2021 16:23:59 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1626877438;
 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=Rja4V1gSwV5a8Uvz5UhvPIW8CCLzJE4dUMC+Y1+QFFo=;
 b=RJRH+urcnLeHrxu2ud5MObq0GqZobzXvIA6kGhBc415c8pjCT+wTLiHDPk3QRmBSYOxzM9
 7Q/EXjU+pe3dn4/CEvKrECPoEjOerXnQ2SOVnYk/9Fdfl2r8cs7l8+3wUyuMtebt21qHEa
 G4YqCRKXyik4Lv3SOOouJoCLj3CVEw0=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-286-H4g00ux4PJ-Z2LX-0Vi57Q-1; Wed, 21 Jul 2021 10:23:55 -0400
X-MC-Unique: H4g00ux4PJ-Z2LX-0Vi57Q-1
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
 [10.5.11.16])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1F2BD80058B;
 Wed, 21 Jul 2021 14:23:54 +0000 (UTC)
Received: from [10.36.110.10] (unknown [10.36.110.10])
 by smtp.corp.redhat.com (Postfix) with ESMTPS id F148F5C1BB;
 Wed, 21 Jul 2021 14:23:52 +0000 (UTC)
To: Cheng Jiang <cheng1.jiang@intel.com>, Chenbo.Xia@intel.com
Cc: dev@dpdk.org, jiayu.hu@intel.com, yvonnex.yang@intel.com
References: <20210602042802.31943-1-cheng1.jiang@intel.com>
 <20210719081022.12949-1-cheng1.jiang@intel.com>
 <20210719081022.12949-3-cheng1.jiang@intel.com>
From: Maxime Coquelin <maxime.coquelin@redhat.com>
Message-ID: <3f38c806-045d-90a5-f8c6-bb0ef0ee5773@redhat.com>
Date: Wed, 21 Jul 2021 16:23:51 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <20210719081022.12949-3-cheng1.jiang@intel.com>
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
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-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Subject: Re: [dpdk-dev] [PATCH v6 2/5] vhost: add unsafe API to clear
 packets in async vhost
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>



On 7/19/21 10:10 AM, Cheng Jiang wrote:
> Applications need to stop DMA transfers and finish all the inflight
> packets when in VM memory hot-plug case and async vhost is used. This
> patch is to provide an unsafe API to clear inflight packets which
> are submitted to DMA engine in vhost async data path.
> 
> Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
> ---
>  lib/vhost/rte_vhost_async.h | 22 +++++++++
>  lib/vhost/version.map       |  3 ++
>  lib/vhost/virtio_net.c      | 93 +++++++++++++++++++++++++++----------
>  3 files changed, 94 insertions(+), 24 deletions(-)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime