From: Bruce Richardson Subject: Re: [PATCH 1/2] net/mlx5: replace memory barrier type Date: Thu, 24 Aug 2017 10:27:00 +0100 Message-ID: <20170824092659.GA17904@bricha3-MOBL3.ger.corp.intel.com> References: <1503301622-14220-1-git-send-email-sagi@grimberg.me> <1503301622-14220-2-git-send-email-sagi@grimberg.me> <20170823113908.GW12995@autoinstall.dev.6wind.com> <20170823131142.GA13944@bricha3-MOBL3.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: =?iso-8859-1?Q?N=E9lio?= Laranjeiro , Sagi Grimberg , "dev@dpdk.org" , Adrien Mazarguil To: Shahaf Shuler Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id E71777CC0 for ; Thu, 24 Aug 2017 11:27:04 +0200 (CEST) Content-Disposition: inline In-Reply-To: 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 Thu, Aug 24, 2017 at 06:56:11AM +0000, Shahaf Shuler wrote: > Wednesday, August 23, 2017 4:12 PM, Bruce Richardson: > > On Wed, Aug 23, 2017 at 01:39:08PM +0200, Nélio Laranjeiro wrote: > > > On Mon, Aug 21, 2017 at 10:47:01AM +0300, Sagi Grimberg wrote: > > > > > > Acked-by: Nelio Laranjeiro > > > > > While a compiler barrier may do on platforms with strong ordering, I'm > > wondering if the rte_smp_wmb() macro may be needed here to give > > compiler barrier or actual memory barrier depending on platform? > > Thanks for the catch! > > However, the description of rte_smp_wmb() not seems to fit our case here. > We don't try to sync between different lcores, rather between the device and a single lcore. > > Maybe rte_io_wmb fits better? > Yep. Looks about right. /Bruce