From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B671AA0524; Fri, 8 Jan 2021 10:16:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6EFB140EBC; Fri, 8 Jan 2021 10:16:24 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 47F35140EB2 for ; Fri, 8 Jan 2021 10:16:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610097382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s+lkU+XBWhl9BpGHxkzwmumfr34Izz0MunYjk7BLqJQ=; b=WTrWg5/Z1mVMDWRMyxYnDLRcKNaOKtMyETHM6kcx5C/qfffczLSzZGbg02bCTFq/qLD1Xe wzQOgjNNMjumqbvpB8/pcjXq7AmFV6bq5V402nVgEwghyAKRvgJFJlvNn4kLQbYfGJdD51 bmeEgKA9yM7hbQi79mFCRpz4/R04ibk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-595-FRly0rF_PdeqBcz-7zxMKA-1; Fri, 08 Jan 2021 04:16:18 -0500 X-MC-Unique: FRly0rF_PdeqBcz-7zxMKA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 59644800D55; Fri, 8 Jan 2021 09:16:17 +0000 (UTC) Received: from [10.36.110.9] (unknown [10.36.110.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B9BC19C48; Fri, 8 Jan 2021 09:16:15 +0000 (UTC) To: Joyce Kong , chenbo.xia@intel.com, honnappa.nagarahalli@arm.com, ruifeng.wang@arm.com Cc: dev@dpdk.org, nd@arm.com References: <20201221155033.6771-1-joyce.kong@arm.com> From: Maxime Coquelin Message-ID: <46d03859-d6d5-532a-4afb-c1c0bf53f1e4@redhat.com> Date: Fri, 8 Jan 2021 10:16:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20201221155033.6771-1-joyce.kong@arm.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v1 0/8] replace smp barriers in vhost with C11 atomic 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 Sender: "dev" On 12/21/20 4:50 PM, Joyce Kong wrote: > This patchset is to replace rte smp barriers in vhost with C11 atomic > built-ins. > > The rte_smp_*mb APIs provide full barrier functionality. However, many > use cases do not require full barriers. To support such use cases, DPDK > will adopt C11 barrier semantics and provide wrappers using C11 atomic > built-ins.[1] > > With this patchset, PVP case(vhost-user + virtio-user) has 9.8% perf > uplift for the split in_order path and no perf degradation for the > packed in_order path under 0.001% acceptable loss on ThunderX2 platform. > > [1] http://code.dpdk.org/dpdk/latest/source/doc/guides/rel_notes/deprecation.rst > > Joyce Kong (8): > examples/vhost: relax memory ordering when enqueue/dequeue > examples/vhost_blk: replace smp with thread fence > vhost: remove unnecessary smp barrier for desc flags > vhost: remove unnecessary smp barrier for avail idx > vhost: relax full barriers for desc flags > vhost: relax full barriers for used idx > vhost: replace smp with thread fence for packed vring > vhost: replace smp with thread fence for control path > > examples/vhost/virtio_net.c | 12 ++++-------- > examples/vhost_blk/vhost_blk.c | 8 ++++---- > lib/librte_vhost/vdpa.c | 4 ++-- > lib/librte_vhost/vhost.c | 18 +++++++++--------- > lib/librte_vhost/vhost.h | 6 +++--- > lib/librte_vhost/vhost_user.c | 2 +- > lib/librte_vhost/virtio_net.c | 26 +++++++++++--------------- > 7 files changed, 34 insertions(+), 42 deletions(-) > Series applied to dpdk-next-virtio/main. Thanks, Maxime