Message ID | 1568020491-52462-1-git-send-email-joyce.kong@arm.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A76501EB53; Mon, 9 Sep 2019 11:15:09 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by dpdk.org (Postfix) with ESMTP id AA3611EB52 for <dev@dpdk.org>; Mon, 9 Sep 2019 11:15:07 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7A70C1000; Mon, 9 Sep 2019 02:15:06 -0700 (PDT) Received: from net-arm-thunderx2-01.test.ast.arm.com (net-arm-thunderx2-01.shanghai.arm.com [10.169.40.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 002183F71F; Mon, 9 Sep 2019 02:15:03 -0700 (PDT) From: Joyce Kong <joyce.kong@arm.com> To: dev@dpdk.org Cc: nd@arm.com, maxime.coquelin@redhat.com, tiwei.bie@intel.com, zhihong.wang@intel.com, amorenoz@redhat.com, xiao.w.wang@intel.com, yong.liu@intel.com, jfreimann@redhat.com, honnappa.nagarahalli@arm.com, gavin.hu@arm.com Date: Mon, 9 Sep 2019 17:14:49 +0800 Message-Id: <1568020491-52462-1-git-send-email-joyce.kong@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566893979-3290-1-git-send-email-joyce.kong@arm.com> References: <1566893979-3290-1-git-send-email-joyce.kong@arm.com> Subject: [dpdk-dev] [PATCH v3 0/2] virtio: one way barrier for packed vring flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
virtio: one way barrier for packed vring flags
|
|
Message
Joyce Kong
Sept. 9, 2019, 9:14 a.m. UTC
This patch set replaces the two-way barriers with C11 one-way barriers for packed vring flags, when the frontend and backend are implemented in software. By doing vhost-user + virtio-user case benchmarking, 9% performance gain in the RFC2544 test was measured on Thunderx2 platform.[1] [1]https://doc.dpdk.org/dts/test_plans/pvp_multi_paths_performance_test_plan.html PVP test with virtio 1.1 mergeable path v3: Wrap C11 one-way barriers and DMA barriers(rte_cio_*) together with an inline fuction. v2: Convert RFC to patch. Joyce Kong (2): virtio: one way barrier for packed vring desc avail flags virtio: one way barrier for packed vring desc used flags drivers/net/virtio/virtio_rxtx.c | 25 +++++++++++++-------- drivers/net/virtio/virtio_user/virtio_user_dev.c | 10 ++++++--- drivers/net/virtio/virtqueue.h | 28 +++++++++++++++++++++++- lib/librte_vhost/vhost.h | 2 +- lib/librte_vhost/virtio_net.c | 16 ++++++-------- 5 files changed, 58 insertions(+), 23 deletions(-)