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 F4173A09FF; Thu, 24 Dec 2020 10:00:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id ED9DEC9FC; Thu, 24 Dec 2020 10:00:49 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id CF78FC9FC for ; Thu, 24 Dec 2020 10:00:47 +0100 (CET) IronPort-SDR: 8uw7ycsynoAmM/P/smlYzokv5uZLsbdKnFzs+kGQ/7MEW6fe8AcztWQUtuqsr0pQNvP22gT7ZY BLMV0Jmf4zEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9844"; a="163185740" X-IronPort-AV: E=Sophos;i="5.78,444,1599548400"; d="scan'208";a="163185740" 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 01:00:39 -0800 IronPort-SDR: Mw/9PmM47FndsfYfxv9seCbw8ZyXTQUhaGtXmKG1X//bcVTDEry8Y8XJx6vuwye0md4rXHTb3t MA1e5aGfIvpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,444,1599548400"; d="scan'208";a="393756357" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.119.112]) by fmsmga002.fm.intel.com with ESMTP; 24 Dec 2020 01:00:37 -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: Thu, 24 Dec 2020 08:49:16 +0000 Message-Id: <20201224084918.10345-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 v3 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. --- 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 | 168 ++++++++++++++++++++++++++++++------------ examples/vhost/main.h | 7 +- 3 files changed, 130 insertions(+), 60 deletions(-) -- 2.29.2