From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EF94FA04DD; Thu, 22 Oct 2020 11:12:17 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D4E7AA93E; Thu, 22 Oct 2020 11:12:16 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id E4456A8F8 for ; Thu, 22 Oct 2020 11:12:14 +0200 (CEST) IronPort-SDR: 8ab5ddWLAmBklBBv4cOpXzP7lw7G9gTc0kbg4JqCNFWC1k9DXKgBw4XSXIujSpu85HV20a2Kgd fTuRlRPc8DQg== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="229126556" X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="229126556" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Oct 2020 02:12:12 -0700 IronPort-SDR: Tt9u5rq1shEhOPe0zjxxvcZOjZsOauf0cmeKsLkpgw/E9uJjsFGJLwY4c8h9BOLGKkVwTAlk4b 2NqRQKnR5p5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,404,1596524400"; d="scan'208";a="359183112" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.112]) by FMSMGA003.fm.intel.com with ESMTP; 22 Oct 2020 02:12:11 -0700 From: Cheng Jiang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, patrick.fu@intel.com, YvonneX.Yang@intel.com, Cheng Jiang Date: Thu, 22 Oct 2020 08:59:05 +0000 Message-Id: <20201022085909.112403-1-Cheng1.jiang@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200910064351.35513-1-Cheng1.jiang@intel.com> References: <20200910064351.35513-1-Cheng1.jiang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v10 0/4] add async data path in vhost sample X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This patch set makes vhost-vswitch be able to use vhost async APIs for enqueue operations. Demonstrated how the application leverage IOAT DMA channel with vhost async APIs. We introduce two parameters to enable DMA acceleration for Tx operations of queues: -dma_type This parameter is used to specify DMA type for async vhost-user net driver. -dmas This parameter is used to specify the assigned DMA device of a vhost device and enable async vhost data path. --- v10: * Fixed compilation issue on specific environment v9: * Optimized code structure to solve compilation issue on non-x86 platforms v8: * Changed meson build file due to the change of ioat component name v7: * Improved IOAT callbacks and added some comments v6: * Cleand code and rebased for latest code v5: * Improved meson build file and fixed dependency problem v4: * Code rebased for latest IOAT driver v3: * Fixed a coding style problem v2: * Changed meson build file to fix dependency problem * Added parameter description in usage function * Optimized parameter settings and parsing function * Optimized abstraction, moved some code to ioat.c Cheng Jiang (4): example/vhost: add async vhost args parsing function example/vhost: add support for vhost async data path doc: update vhost sample doc for vhost async data path doc: update release notes for vhost sample doc/guides/rel_notes/release_20_11.rst | 6 + doc/guides/sample_app_ug/vhost.rst | 11 ++ examples/vhost/ioat.c | 201 +++++++++++++++++++++++++ examples/vhost/ioat.h | 45 ++++++ examples/vhost/main.c | 93 +++++++++++- examples/vhost/main.h | 1 + examples/vhost/meson.build | 5 + 7 files changed, 360 insertions(+), 2 deletions(-) create mode 100644 examples/vhost/ioat.c create mode 100644 examples/vhost/ioat.h -- 2.27.0