From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb0-f180.google.com (mail-yb0-f180.google.com [209.85.213.180]) by dpdk.org (Postfix) with ESMTP id 47D4C10CD5 for ; Thu, 22 Dec 2016 02:18:12 +0100 (CET) Received: by mail-yb0-f180.google.com with SMTP id 84so10426126ybe.3 for ; Wed, 21 Dec 2016 17:18:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=GTsm1dO+pUVlkbwuduJp1aW1HUXT65CMnATrEvMu42I=; b=LYEkuRWWNP+3oESW6TQhOXx3IQ4U8C3uYisZkVx8uqAChJo4aUCz3o4twLdNuM8SPC jPOdN8Qjp5Tkqxct9Kac7sDoJnlbzPSBPLvNzzaRxRKHyk71hZdU6MMo1ERmekR7NLay Y1aqu9CvDdywKWuO8r8ZYqLN8+Ued/fxFCCGY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=GTsm1dO+pUVlkbwuduJp1aW1HUXT65CMnATrEvMu42I=; b=HtvvvH3Wm7CjP10r8j7CuBtKY+SPULETZyvbYLZfbHxr/CLvu6XbzVsvzYR/7pVeDO gb7Pdh8ik7xlVgTR44seTGX/OBiVyy7ya7zSauxptUJXQAfUDRHriPDtOk+pmw2dORzN g6QtWUiwXO2lMUliqx0gvOug+N55TqIPxKAa8UipF5TCYWVhd0obDSB8lKOJFElb9l3Y ARaatrCjQogFyBeEzZYld7zaxXU/qIGN3y3Hzotncx368WnQJEsOt3sL8WTLoWrexqJj xPUK9yNNrqVUXho2bnKxa3CvyRMAJJcMkzbeFjeOb8b2OXZ3DVeC6ww140/fFA173Oaq igyQ== X-Gm-Message-State: AIkVDXLN+s63UwEMoo2o3K6gEyY6E+GBeHNpgMsS9CRxmttL8SydrIMvjyxiiLd+lUSzEsGMQEUT2b7qfTGQHWtb X-Received: by 10.37.180.17 with SMTP id n17mr4859292ybj.126.1482369492424; Wed, 21 Dec 2016 17:18:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.193.131 with HTTP; Wed, 21 Dec 2016 17:18:12 -0800 (PST) In-Reply-To: <20161221110331.GA9108@bricha3-MOBL3.ger.corp.intel.com> References: <1482127758-4904-1-git-send-email-jianbo.liu@linaro.org> <1482127758-4904-2-git-send-email-jianbo.liu@linaro.org> <20161221100848.GA4506@localhost.localdomain> <20161221110331.GA9108@bricha3-MOBL3.ger.corp.intel.com> From: Jianbo Liu Date: Thu, 22 Dec 2016 09:18:12 +0800 Message-ID: To: Bruce Richardson Cc: Jerin Jacob , dev@dpdk.org, "Zhang, Helin" , "Ananyev, Konstantin" Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [PATCH 2/2] net/ixgbe: calculate correct number of received packets for ARM NEON-version vPMD 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, 22 Dec 2016 01:18:13 -0000 On 21 December 2016 at 19:03, Bruce Richardson wrote: > On Wed, Dec 21, 2016 at 03:38:51PM +0530, Jerin Jacob wrote: >> On Mon, Dec 19, 2016 at 11:39:18AM +0530, Jianbo Liu wrote: >> >> Hi Jianbo, >> >> > vPMD will check 4 descriptors in one time, but the statuses are not consistent >> > because the memory allocated for RX descriptors is cacheable huagepage. >> Is it different in X86 case ?i.e Is x86 creating non cacheable hugepages? > > This is not a problem on IA, because the instruction ordering rules on > IA guarantee that the reads will be done in the correct program order, > and we never get stale cache data. > Yes, I think it's an issue for ARM arch. It's because more than one cacheline-sized data (4/8 descriptors can be in two cachelines) will be read at one time in bulk alloc RX or vPMD. There is the same issue for i40e, I'll send the same patch later.