From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw0-f179.google.com (mail-yw0-f179.google.com [209.85.161.179]) by dpdk.org (Postfix) with ESMTP id 342C41150 for ; Sat, 4 Feb 2017 17:39:58 +0100 (CET) Received: by mail-yw0-f179.google.com with SMTP id l19so28867321ywc.2 for ; Sat, 04 Feb 2017 08:39:58 -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=6YzZsuPJXFYGGt1ff2tVKer2PHnTy2Z6256OVhuLoZY=; b=DecMn4Bv1GeYT3Qz31MBMxpyXNnnXy73U6aEyzmxLpK93/XRsEH/TuADEpc//uNMIH B+Plb91uxzEPMFpridTe9aveat77epgcXjtjdP9/PVc9g6czRz+nKVB9kPY2cTT0sJPW 4k2mvdf/fZBQ02+LiM+FidrngWXPjZZqL08tE= 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=6YzZsuPJXFYGGt1ff2tVKer2PHnTy2Z6256OVhuLoZY=; b=eT6HsXVG4lB0aK10FD1SH2N0eweXynOkh6/YZW7s3aelGfWrHHb/yr2ptzffyFAHYd 7qz3XPhlmEqCXELru/JAZpF0N6c4mWSnE21gfxk8+Cn9+M1tUOr0IOzr+DP62pLgRgnK uKBRrGkhW/4L8CpPtZPRU1zXL3HqNyg0PWnkQXun/KYivXOVrsLAUtVSYCJrUge2fByB shCCxNfjFEvEDYt3qoRtyZqDbA9XSoDru5zHmT2BNtXdkCUoAZNnJUFysNTyXZiXPCnl YwwiXYT/BDYzHbdNGFHE8kGuVRtu+gys00aJ5aY/KVzsyATJidGF/PKxRikdEczx2tWC m6jQ== X-Gm-Message-State: AIkVDXKdZVZZFGNseuW4kSJweMDeUVFrRcUUK9EPUPdGkx7qg/YkGqW8SrvxobhOvH8WrqUvQJurWM4MlDid3CSi X-Received: by 10.13.251.6 with SMTP id l6mr1881232ywf.335.1486226398112; Sat, 04 Feb 2017 08:39:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.200.4 with HTTP; Sat, 4 Feb 2017 08:39:57 -0800 (PST) In-Reply-To: <1486226225-29997-1-git-send-email-jianbo.liu@linaro.org> References: <1482127758-4904-1-git-send-email-jianbo.liu@linaro.org> <1486226225-29997-1-git-send-email-jianbo.liu@linaro.org> From: Jianbo Liu Date: Sun, 5 Feb 2017 00:39:57 +0800 Message-ID: To: dev@dpdk.org, "Zhang, Helin" , "Ananyev, Konstantin" , Jerin Jacob Cc: Jianbo Liu Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [PATCH v3 1/2] net/ixgbe: calculate the correct number of received packets in bulk alloc function 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: Sat, 04 Feb 2017 16:39:59 -0000 On 5 February 2017 at 00:37, Jianbo Liu wrote: > To get better performance, Rx bulk alloc recv function will scan 8 descs > in one time, but the statuses are not consistent on ARM platform because > the memory allocated for Rx descriptors is cacheable hugepages. > This patch is to calculate the number of received packets by scan DD bit > sequentially, and stops when meeting the first packet with DD bit unset. > > Signed-off-by: Jianbo Liu > --- > drivers/net/ixgbe/ixgbe_rxtx.c | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) > > diff --git a/drivers/net/ixgbe/ixgbe_rxtx.c b/drivers/net/ixgbe/ixgbe_rxtx.c > index 36f1c02..613890e 100644 > --- a/drivers/net/ixgbe/ixgbe_rxtx.c > +++ b/drivers/net/ixgbe/ixgbe_rxtx.c There is no change for this patch from v2 to v3. But the other in this patchset, reading desc statuses is changed to be in order, not backward.