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 50C75A00BE; Thu, 10 Feb 2022 14:44:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CA7F411AE; Thu, 10 Feb 2022 14:44:23 +0100 (CET) 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 6818E4013F for ; Thu, 10 Feb 2022 14:44:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644500660; 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=vYHTEk6/6nJAqAalYYM4THR9UmjljHoaaCOD+99leLY=; b=DizO7+UElM7kEpzZAkH9gXwRKKCD7YgjmUIUGggz/VmSfX0np0RXT/VNQk0IdeDeKnz/uL wiNK/xEyMY8OYXzzy7pAUBA7ydRpwhG1JO8RWLZlnO+XWyhKbJrIJ8B1jkUpZVFK/ZyRD1 UwhDFO8gZowhE4E+xXbJ8k7AKECkppc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-255-2RX6wgunMeyGCGsqgaCnSQ-1; Thu, 10 Feb 2022 08:44:10 -0500 X-MC-Unique: 2RX6wgunMeyGCGsqgaCnSQ-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 219DE193F561; Thu, 10 Feb 2022 13:44:09 +0000 (UTC) Received: from [10.39.208.19] (unknown [10.39.208.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5D26C7C0F5; Thu, 10 Feb 2022 13:44:06 +0000 (UTC) Message-ID: <88da5871-72ae-242e-f40e-c6a8f9a8862c@redhat.com> Date: Thu, 10 Feb 2022 14:44:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v4 1/1] vhost: integrate dmadev in asynchronous data-path To: Jiayu Hu , dev@dpdk.org Cc: i.maximets@ovn.org, chenbo.xia@intel.com, xuan.ding@intel.com, cheng1.jiang@intel.com, liangma@liangbit.com, Sunil Pai G References: <20220208104031.1885640-2-jiayu.hu@intel.com> <20220209125145.1918050-1-jiayu.hu@intel.com> <20220209125145.1918050-2-jiayu.hu@intel.com> From: Maxime Coquelin In-Reply-To: <20220209125145.1918050-2-jiayu.hu@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-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 2/9/22 13:51, Jiayu Hu wrote: > Since dmadev is introduced in 21.11, to avoid the overhead of vhost DMA > abstraction layer and simplify application logics, this patch integrates > dmadev in asynchronous data path. > > Signed-off-by: Jiayu Hu > Signed-off-by: Sunil Pai G > --- > doc/guides/prog_guide/vhost_lib.rst | 100 +++++----- > examples/vhost/Makefile | 2 +- > examples/vhost/ioat.c | 218 ---------------------- > examples/vhost/ioat.h | 63 ------- > examples/vhost/main.c | 253 ++++++++++++++++++++----- > examples/vhost/main.h | 11 ++ > examples/vhost/meson.build | 6 +- > lib/vhost/meson.build | 2 +- > lib/vhost/rte_vhost.h | 2 + > lib/vhost/rte_vhost_async.h | 145 ++++----------- > lib/vhost/version.map | 3 + > lib/vhost/vhost.c | 121 ++++++++---- > lib/vhost/vhost.h | 85 ++++++++- > lib/vhost/virtio_net.c | 277 ++++++++++++++++++++++------ > 14 files changed, 693 insertions(+), 595 deletions(-) > delete mode 100644 examples/vhost/ioat.c > delete mode 100644 examples/vhost/ioat.h > Reviewed-by: Maxime Coquelin Thanks, Maxime