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 1B322A0546; Sat, 10 Apr 2021 12:38:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8FE801411E5; Sat, 10 Apr 2021 12:38:08 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 83BC11411E4 for ; Sat, 10 Apr 2021 12:38:06 +0200 (CEST) IronPort-SDR: RIJEUR0QawAHf3woB07JJ5OFwR73XbGWFKGgJwCYq6KPwSFbMjfnk6b/rXp9MJ0cM3gWcLSKII c7/7S+ePkmCQ== X-IronPort-AV: E=McAfee;i="6000,8403,9949"; a="193466733" X-IronPort-AV: E=Sophos;i="5.82,210,1613462400"; d="scan'208";a="193466733" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2021 03:38:05 -0700 IronPort-SDR: 5b3u+yNCZYB3U0lLaO+9FnF2/vCKIxp2JIPWIEN1HdTqItSUUexWbfd7rDrwxawvPdNhIK389/ qoOUWHd04AWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,210,1613462400"; d="scan'208";a="423093336" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.112]) by orsmga008.jf.intel.com with ESMTP; 10 Apr 2021 03:38:03 -0700 From: Cheng Jiang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, yvonnex.yang@intel.com, yinan.wang@intel.com, Cheng Jiang Date: Sat, 10 Apr 2021 10:25:16 +0000 Message-Id: <20210410102521.15806-1-Cheng1.jiang@intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210317085426.10119-1-Cheng1.jiang@intel.com> References: <20210317085426.10119-1-Cheng1.jiang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/4] add support for packed ring in async vhost 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" For now async vhost data path only supports split ring structure. In order to make async vhost compatible with virtio 1.1 spec this patch set cleans async split ring codes and enables packed ring in async vhost data path. Batch datapath is also enabled in packed ring. v4: * change the patch structure * clean code for async split ring * reuse some code from split ring * change the error handler for DMA-copy packet * add check for malloc * remove useless code * add doc update v3: * fix error handler for DMA-copy packet v2: * fix wrong buffer index in rte_vhost_poll_enqueue_completed() * add async_buffers_packed memory free in vhost_free_async_mem() Cheng Jiang (4): vhost: abstract and reorganize async split ring code vhost: add support for packed ring in async vhost vhost: add batch datapath for async vhost packed ring doc: add release note for vhost async packed ring doc/guides/rel_notes/release_21_05.rst | 4 + lib/librte_vhost/rte_vhost_async.h | 1 + lib/librte_vhost/vhost.c | 27 +- lib/librte_vhost/vhost.h | 7 +- lib/librte_vhost/virtio_net.c | 603 ++++++++++++++++++++++--- 5 files changed, 560 insertions(+), 82 deletions(-) -- 2.29.2