From patchwork Fri Dec 16 07:38:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Cheng1" X-Patchwork-Id: 120967 Return-Path: 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 42C7FA0542; Fri, 16 Dec 2022 09:24:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD83640E28; Fri, 16 Dec 2022 09:24:47 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 55D2640685 for ; Fri, 16 Dec 2022 09:24:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671179086; x=1702715086; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BWypVCRFkBWfcalD5DvNcSlKhU3Y0nL42q6wka58kEw=; b=NEPSEZAYGsLN9CHsVZ6YXb6cvIFUn+DSew9tadzPsApMTPgDyLXYfxYc zeqnbhvt94/WlVI8JRPb2VYRbrfxRl4Mw3XEYvkxZGVHXiKGSG3xdAvcD bG+1BmxCgnmjthQd7v+V2tu1k/dQ5aObNXh3boEkPG0ad9/Zal/rWUnh6 tcr5VRGfxl3a42h0BDS+3HCBrsYjW3tc+zfjfBFDEHFkEOCRfApeWsiJs OJ2Gcmv4qamc4ODSG+BDVXwe95uckmZEePdZ9NErFOSHqC9TWMLh0aC/y 2nTFN+2fioz7CxseuBBcnvz6JxRuCdX6PZlb2EaH638i8lgt1s3TrnUAH A==; X-IronPort-AV: E=McAfee;i="6500,9779,10562"; a="381137578" X-IronPort-AV: E=Sophos;i="5.96,249,1665471600"; d="scan'208";a="381137578" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Dec 2022 00:24:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10562"; a="682221128" X-IronPort-AV: E=Sophos;i="5.96,249,1665471600"; d="scan'208";a="682221128" Received: from dpdk_jiangcheng.sh.intel.com ([10.67.118.237]) by orsmga001.jf.intel.com with ESMTP; 16 Dec 2022 00:24:42 -0800 From: Cheng Jiang To: maxime.coquelin@redhat.com, chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com, wenwux.ma@intel.com, yuanx.wang@intel.com, yvonnex.yang@intel.com, xingguang.he@intel.com, Cheng Jiang Subject: [RFC 0/3] Async vhost packed ring optimization Date: Fri, 16 Dec 2022 07:38:41 +0000 Message-Id: <20221216073844.24448-1-cheng1.jiang@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 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 To improve the performance of async vhost packed ring. We remove the unnecessary data copy in async vhost packed ring. And add the batch data path in both enqueue data path and dequeue data path. Cheng Jiang (3): vhost: remove redundant copy for packed shadow used ring vhost: add batch enqueue in async vhost packed ring vhost: add batch dequeue in async vhost packed ring lib/vhost/virtio_net.c | 395 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 355 insertions(+), 40 deletions(-) --- 2.35.1