From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by dpdk.org (Postfix) with ESMTP id 0A9105A3E for ; Wed, 15 Apr 2015 18:06:38 +0200 (CEST) Received: by pdbqd1 with SMTP id qd1so57315077pdb.2 for ; Wed, 15 Apr 2015 09:06:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=ReMopKFXaAIct+aLE5CHmOGTKX8KIw8MCfDjqpViIzQ=; b=Vm3Sa6InFMgfD2cCDEd/F3VPdZxL4h7bqtEi3ppA/vrL9bv+PypKaqViVKcrtXQU12 4J5u5GZWKWCimMB1TWiBoRKeIOPQidTG9Ruj7K01g+dJi9sxIcXY1VeNNM7/zOQzf99U z9bTiPcS3eFSQzhduNwrCGisPj48xCM/aw3DQCneuTN5o8a4iPOdFxK/cYVoyf53uim4 vnxRQ/DootjXYPvM1rBVtLykMOp65UzrNOE5KuyQ5li94oJ2iHbZqrTnHbOKkrt0gdR4 4EX+XXqBBJBoOGFPy/OD1aWcSTeNnHZIcVNrd0wNDhg96xWXKHuWoxiBJppbNioMM089 8xWw== X-Gm-Message-State: ALoCoQnN6H98zEiUbaEWRSCg7Tn1U/5iRChEccVlTZOux1x3ZrjlQTCKSP2r4DNNtRbWVzC+C8aZ X-Received: by 10.68.253.162 with SMTP id ab2mr47804000pbd.62.1429113997418; Wed, 15 Apr 2015 09:06:37 -0700 (PDT) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id xz1sm4535916pbb.47.2015.04.15.09.06.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 09:06:37 -0700 (PDT) Date: Wed, 15 Apr 2015 09:06:42 -0700 From: Stephen Hemminger To: "Dong.Wang" Message-ID: <20150415090642.0137f4c9@urahara> In-Reply-To: References: <2601191342CEEE43887BDE71AB97725821415A3A@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] ixgbe:Add write memory barrier for recv pkts. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2015 16:06:38 -0000 On Wed, 15 Apr 2015 21:46:27 +0800 Dong.Wang wrote: > Yes, current implementation works well with IA, and the transmit packets > function's rte_wmb() is also unneccessary. > > But there are two reasons for adding rte_wmb() in recv pkts function: > 1) The memory barrier in recv pkts function and xmit pkts function are > inconsistent, rte_wmb() should be added to recv pkts function or be > removed from xmit pkts function. > 2) DPDK will support PowerPC processor (Other developers are working on > it), I check the memory ordering of PowerPC, there was no mention of > store-store instruction's principle in MPC8544 Reference Manual, only > said it is weak memory ordering. > > So, I think it is neccessary to add rte_wmb() to recv pkts function. > > Dong If PowerPC requires additional memory barriers then it should introduce a new generic set of memory barrier macros that are no-ops on other architectures. Please don't penalize x86 for places where other CPU's have weaker consistency.