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 D0EBEA052A; Fri, 25 Dec 2020 09:19:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F3FBFCA00; Fri, 25 Dec 2020 09:18:49 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id DE1DDC9C0 for ; Fri, 25 Dec 2020 09:18:46 +0100 (CET) IronPort-SDR: z3PqnycUnwI+wSVl98DAjYD1HrsjdLJ+xcMpCWP0JhwANB2ZrIsVFSZqo/YHg2iNeFJbeROtlb fIXLBlbtYkTw== X-IronPort-AV: E=McAfee;i="6000,8403,9845"; a="237762703" X-IronPort-AV: E=Sophos;i="5.78,447,1599548400"; d="scan'208";a="237762703" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Dec 2020 00:18:40 -0800 IronPort-SDR: /EJxB8UnQv0mqc0ujq3+3AJ5QFhl/UIz6/tVwOqSq1dezi/FzoegHI67U8p8S2BZnpyFQxpULZ Wpof455KeMPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,447,1599548400"; d="scan'208";a="399144527" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.112]) by FMSMGA003.fm.intel.com with ESMTP; 25 Dec 2020 00:18:38 -0800 From: Cheng Jiang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, Jiayu.Hu@intel.com, YvonneX.Yang@intel.com, Cheng Jiang Date: Fri, 25 Dec 2020 08:07:10 +0000 Message-Id: <20201225080712.36177-1-Cheng1.jiang@intel.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201218113327.70528-1-Cheng1.jiang@intel.com> References: <20201218113327.70528-1-Cheng1.jiang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v4 0/2] examples/vhost: sample code refactor 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" Refactor the vhost sample code. Add ioat ring space count and check in ioat callback, optimize vhost data path for batch enqueue, replase rte_atomicNN_xxx to atomic_XXX and refactor vhost async data path. --- v4: * improved code structure * improved vhost enqueue buffer memory allocation * cleaned some codes v3: * added some variable initiation * cleaned some codes v2: * optimized patch structure * optimized git log * replased rte_atomicNN_xxx to atomic_XXX Cheng Jiang (2): examples/vhost: add ioat ring space count and check examples/vhost: refactor vhost data path examples/vhost/ioat.c | 15 ++-- examples/vhost/main.c | 202 +++++++++++++++++++++++++++++++----------- examples/vhost/main.h | 7 +- 3 files changed, 161 insertions(+), 63 deletions(-) -- 2.29.2