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 A6CFAA034F; Mon, 30 Aug 2021 16:35:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 65346410F3; Mon, 30 Aug 2021 16:35:31 +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 557E6410E2 for ; Mon, 30 Aug 2021 16:35:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630334128; 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=mnuN8avRE4QtzRnrk/gzhes10+ztaNabcs1zZ2BAjAo=; b=AY6FrZ8Nee1dFsXeI9LC8YhJs+u6umqjRLENTac5VrsqGNcrtcJpVbWOcwqQrVv3te25X1 bnJE9XsbxTCLxBisO3jihoPFUNJjdJ5tkyK8VOnu1gsp1LkIL5NpfWKQ2kYn28nnw9ha6Q BMMbLbhHPIhSvJAZ7uoks4aOtWpRbRk= 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-15-lr-O5Fw7MN6iGjDZu-GwYQ-1; Mon, 30 Aug 2021 10:35:24 -0400 X-MC-Unique: lr-O5Fw7MN6iGjDZu-GwYQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 82E891008062; Mon, 30 Aug 2021 14:35:22 +0000 (UTC) Received: from [10.39.208.27] (unknown [10.39.208.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 13C5560BF4; Mon, 30 Aug 2021 14:35:19 +0000 (UTC) To: Sunil Pai G , dev@dpdk.org Cc: harry.van.haaren@intel.com, bruce.richardson@intel.com, Jiayu.Hu@intel.com, Cian.Ferriter@intel.com, john.mcnamara@intel.com, qian.q.xu@intel.com, ian.stokes@intel.com, Chenbo Xia References: <20210823095355.2478423-1-sunil.pai.g@intel.com> From: Maxime Coquelin Message-ID: <6cd84154-cf2d-593c-b9c4-9df14d18558f@redhat.com> Date: Mon, 30 Aug 2021 16:35:18 +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: <20210823095355.2478423-1-sunil.pai.g@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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 RFC 0/1] vhost-add-DMADEV-support-for-async-datapath 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 Sender: "dev" Hi Sunil, On 8/23/21 11:53 AM, Sunil Pai G wrote: > Note to the reader: > ------------------- > The intent of this patch is to explore possible different approaches > of async implementations. > Please consider this patch for discussions only and not for > merge/upstream. Thanks for sharing, that will indeed help to find the best solution. I'm just wondering if you have the vhost example part of this rework, so that we can understand what are the impacts on app side? > This patch simplifies the vhost async datapath usability by > utilizing the generic DMADEV API's to perform packet copy. > > Previously, it was required by the application to implement its > own DMA enabling logic making it difficult to adopt this feature. > Having a common implementation in vhost library allows > for easier adoption. > > The usability of async datapath is enhanced by extending the > API's to include a DMADEV ID to be passed by the application. > This provides flexibility to applications to decide which DMADEV to be used. > > > Sunil Pai G (1): > vhost: Add DMADEV support for async datapath. > > lib/vhost/meson.build | 2 +- > lib/vhost/rte_vhost_async.h | 55 +------ > lib/vhost/vhost.c | 46 +++--- > lib/vhost/vhost.h | 24 ++- > lib/vhost/virtio_net.c | 311 +++++++++++++++++++++++++++++++----- > 5 files changed, 316 insertions(+), 122 deletions(-) >