[v4,0/4] support async dequeue for split ring
Message ID | 20210630192757.91911-1-wenwux.ma@intel.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3BC0FA0A0F; Wed, 30 Jun 2021 09:35:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8E40141221; Wed, 30 Jun 2021 09:35:04 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 8B09740040 for <dev@dpdk.org>; Wed, 30 Jun 2021 09:35:02 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10030"; a="229940165" X-IronPort-AV: E=Sophos;i="5.83,311,1616482800"; d="scan'208";a="229940165" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2021 00:34:57 -0700 X-IronPort-AV: E=Sophos;i="5.83,311,1616482800"; d="scan'208";a="457115016" Received: from unknown (HELO localhost.localdomain) ([10.240.183.109]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2021 00:34:54 -0700 From: Wenwu Ma <wenwux.ma@intel.com> To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com, cheng1.jiang@intel.com, jiayu.hu@intel.com, Wenwu Ma <wenwux.ma@intel.com> Date: Wed, 30 Jun 2021 19:27:53 +0000 Message-Id: <20210630192757.91911-1-wenwux.ma@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210602083110.5530-1-yuanx.wang@intel.com> References: <20210602083110.5530-1-yuanx.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/4] support async dequeue for split ring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Ma, WenwuX
June 30, 2021, 7:27 p.m. UTC
This patch implements asynchronous dequeue data path for split ring. A new asynchronous dequeue function is introduced. With this function, the application can try to receive packets from the guest with offloading large copies to the DMA engine, thus saving precious CPU cycles. note: PATCH v4 3/4 depends on IOMMU patch from Ding,Xuan (http://patches.dpdk.org/project/dpdk/patch/20210603173023.10487-1-xuan.ding@intel.com/) v4: - Fix wrong packet index issue in async dequeue improve the performance of small packet copies. v3: - Fix compilation warning and error in arm platform. - Restore the removed function virtio_dev_pktmbuf_alloc, async dequeue allocate packets in separate. v2: - Refactor vhost datapath as preliminary patch for this series. - The change of using new API in examples/vhost is put into a dedicated patch. - Check queue_id value before using it. - Async dequeue performance enhancement. 160% performance improvement for v2 vs. v1. - Async dequeue API name change from rte_vhost_try_dequeue_burst to rte_vhost_async_try_dequeue_burst. - The completed package updates the used ring directly. Wenwu Ma (3): examples/vhost: refactor vhost enqueue and dequeue datapaths. examples/vhost: use a new API to query remaining ring space examples/vhost: support vhost async dequeue data path Yuan Wang (1): vhost: support async dequeue for split ring doc/guides/prog_guide/vhost_lib.rst | 10 + doc/guides/sample_app_ug/vhost.rst | 9 +- examples/vhost/ioat.c | 67 +++- examples/vhost/ioat.h | 25 ++ examples/vhost/main.c | 224 +++++++---- examples/vhost/main.h | 33 +- examples/vhost/virtio_net.c | 16 +- lib/vhost/rte_vhost_async.h | 44 ++- lib/vhost/version.map | 3 + lib/vhost/virtio_net.c | 579 ++++++++++++++++++++++++++++ 10 files changed, 902 insertions(+), 108 deletions(-)