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 20E12A04AF; Wed, 19 Aug 2020 05:24:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 378EE5B30; Wed, 19 Aug 2020 05:24:54 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 7C9672BAA for ; Wed, 19 Aug 2020 05:24:52 +0200 (CEST) IronPort-SDR: /KPApfMM5DqAXCpmdvZIuoL6EagdvlsKiQMAOTvHc6dp4ryvJ76iU/FQ+Oz7UScBQXzv9m9dXt PbLYIuTCcJBg== X-IronPort-AV: E=McAfee;i="6000,8403,9717"; a="156113168" X-IronPort-AV: E=Sophos;i="5.76,329,1592895600"; d="scan'208";a="156113168" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 20:24:51 -0700 IronPort-SDR: hfQz9h9DPs8GZWn3uqkjJTV8E2S1/1RLebShTtoWkyH1tVUGiCEuqz1+ogoi7siLB0HabluiyD XorN9OG/67Tg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,329,1592895600"; d="scan'208";a="441452712" Received: from npg-dpdk-virtual-marvin-dev.sh.intel.com ([10.67.119.56]) by orsmga004.jf.intel.com with ESMTP; 18 Aug 2020 20:24:49 -0700 From: Marvin Liu To: maxime.coquelin@redhat.com, chenbo.xia@intel.com, zhihong.wang@intel.com Cc: dev@dpdk.org, Marvin Liu Date: Wed, 19 Aug 2020 11:24:09 +0800 Message-Id: <20200819032414.51430-1-yong.liu@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1 0/5] vhost add vectorized data path 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" Packed ring format is imported since virtio spec 1.1. All descriptors are compacted into one single ring when packed ring format is on. It is straight forward that ring operations can be accelerated by utilizing SIMD instructions. This patch set will introduce vectorized data path in vhost library. If vectorized option is on, operations like descs check, descs writeback, address translation will be accelerated by SIMD instructions. Vhost application can choose whether using vectorized acceleration, it is like external buffer and zero copy features. If platform or ring format not support vectorized function, vhost will fallback to use default batch function. There will be no impact in current data path. Marvin Liu (5): vhost: add vectorized data path vhost: reuse packed ring functions vhost: prepare memory regions addresses vhost: add packed ring vectorized dequeue vhost: add packed ring vectorized enqueue doc/guides/nics/vhost.rst | 5 + doc/guides/prog_guide/vhost_lib.rst | 12 ++ drivers/net/vhost/rte_eth_vhost.c | 17 +- lib/librte_vhost/Makefile | 13 ++ lib/librte_vhost/meson.build | 16 ++ lib/librte_vhost/rte_vhost.h | 1 + lib/librte_vhost/socket.c | 5 + lib/librte_vhost/vhost.c | 11 ++ lib/librte_vhost/vhost.h | 235 ++++++++++++++++++++++ lib/librte_vhost/vhost_user.c | 11 ++ lib/librte_vhost/vhost_vec_avx.c | 292 ++++++++++++++++++++++++++++ lib/librte_vhost/virtio_net.c | 257 ++++-------------------- 12 files changed, 659 insertions(+), 216 deletions(-) create mode 100644 lib/librte_vhost/vhost_vec_avx.c -- 2.17.1