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 218E6A0C56; Mon, 23 Aug 2021 11:54:24 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A808C40687; Mon, 23 Aug 2021 11:54:23 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 57F094014D for ; Mon, 23 Aug 2021 11:54:22 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10084"; a="216793260" X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="216793260" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2021 02:54:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,344,1620716400"; d="scan'208";a="425699473" Received: from silpixa00400896.ir.intel.com ([10.243.22.68]) by orsmga003.jf.intel.com with ESMTP; 23 Aug 2021 02:54:18 -0700 From: Sunil Pai G To: 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, sunil.pai.g@intel.com Date: Mon, 23 Aug 2021 09:53:54 +0000 Message-Id: <20210823095355.2478423-1-sunil.pai.g@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" 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. 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(-) -- 2.25.1