Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E476C4338F for ; Mon, 23 Aug 2021 09:54:25 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id A89A361374 for ; Mon, 23 Aug 2021 09:54:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A89A361374 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org 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