From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 24 Aug 2017 02:27:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,420,1498546800"; d="scan'208";a="1187652894" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.24]) by fmsmga001.fm.intel.com with SMTP; 24 Aug 2017 02:27:01 -0700 Received: by (sSMTP sendmail emulation); Thu, 24 Aug 2017 10:27:00 +0100 Date: Thu, 24 Aug 2017 10:27:00 +0100 From: Bruce Richardson To: Shahaf Shuler Cc: =?iso-8859-1?Q?N=E9lio?= Laranjeiro , Sagi Grimberg , "dev@dpdk.org" , Adrien Mazarguil 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.3 (2017-05-23) Subject: Re: [dpdk-dev] [PATCH 1/2] net/mlx5: replace memory barrier type 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: , X-List-Received-Date: Thu, 24 Aug 2017 09:27:05 -0000 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