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 D2D7BA09FF; Fri, 25 Dec 2020 02:57:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B38432BA2; Fri, 25 Dec 2020 02:57:53 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9C69726A8 for ; Fri, 25 Dec 2020 02:57:50 +0100 (CET) IronPort-SDR: ZnWPsUQ8a2oikiTKNispHPVJd5FgRRgyZ13pAx2B9ALVRHgqkZkX6vumemMWyLX++hz9fIt9T5 qeA4XIhAG16A== X-IronPort-AV: E=McAfee;i="6000,8403,9845"; a="163248214" X-IronPort-AV: E=Sophos;i="5.78,446,1599548400"; d="scan'208";a="163248214" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Dec 2020 17:57:48 -0800 IronPort-SDR: yRVay2ZG7wx56wQCvnslVZ61/qJi3tSHuhPZe7jJcJyEgm810iQsavQnikhI62d565qWv8/RhH JdyV2wLxBuuA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,446,1599548400"; d="scan'208";a="394141386" Received: from npg_dpdk_virtio_jiayuhu_07.sh.intel.com ([10.67.118.193]) by fmsmga002.fm.intel.com with ESMTP; 24 Dec 2020 17:57:46 -0800 From: Jiayu Hu To: dev@dpdk.org Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com, cheng1.jiang@intel.com, yinan.wang@intel.com, jiayu.hu@intel.com Date: Fri, 25 Dec 2020 03:28:52 -0500 Message-Id: <1608884934-106977-1-git-send-email-jiayu.hu@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1608630365-131192-1-git-send-email-jiayu.hu@intel.com> References: <1608630365-131192-1-git-send-email-jiayu.hu@intel.com> Subject: [dpdk-dev] [PATCH v3 0/2] Enhance Async Enqueue for Small Packets 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" Async enqueue offloads large copies to DMA devices, and small copies are still performed by the CPU. However, it requires users to get enqueue completed packets by rte_vhost_poll_enqueue_completed(), even if they are completed by the CPU when rte_vhost_submit_enqueue_burst() returns. This design incurs extra overheads of tracking completed pktmbufs and function calls, thus degrading performance on small packets. The first patch cleans up async enqueue code, and the second patch enables rte_vhost_submit_enqueue_burst() to return completed packets. Change log ========== v3: - fix incorrect ret value when DMA ring is full - enhance description of API declaration and programmer guide v2: - fix typo - rename API variables - update programmer guide Jiayu Hu (2): vhost: cleanup async enqueue vhost: enhance async enqueue for small packets doc/guides/prog_guide/vhost_lib.rst | 8 +- lib/librte_vhost/rte_vhost_async.h | 32 +++-- lib/librte_vhost/vhost.c | 14 +- lib/librte_vhost/vhost.h | 7 +- lib/librte_vhost/vhost_user.c | 7 +- lib/librte_vhost/virtio_net.c | 258 ++++++++++++++++++++---------------- 6 files changed, 185 insertions(+), 141 deletions(-) -- 2.7.4