From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by dpdk.org (Postfix) with ESMTP id 984755A43; Fri, 12 Aug 2016 01:58:06 +0200 (CEST) Received: by mail-oi0-f52.google.com with SMTP id c15so15495951oig.0; Thu, 11 Aug 2016 16:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=iOBHVgjvArNxjKMGVMJsMzkK6NItq6QoJ5dyme2FOAo=; b=R8j5gXFze9Le9oF9AqyqjLnuXfZZQuo8BRpHz3Yh18HQFztpEh83M2opBa4ivdadWU LSbn0pgjJJ5um4FrhhxJ2BARpI9ycWGMP1u3MoJCPbxiXzhLHRQjg9wbVK33JkdU+EK8 JMXh+nhbaLEZsjnPOxP4dXDOOm3FWZg7oASDN+UiPhjVrDE1xyiMBO+4jh/ra3keBNqn QXoOK7YN2v+N8OQ3FVRaTdBF9VIjFc99UjLiewKhkY/m0YxZY/4AvdJbNLROiYcnECDa i4kw0/lPPYcXu7pl4/AHtNHTqOsdjAZw4/QZAKZ/NXbh0oVA6PFnajYc1a5N4qdk/9pv c3Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=iOBHVgjvArNxjKMGVMJsMzkK6NItq6QoJ5dyme2FOAo=; b=GcgAHElCJHdPwFB6NLA8TDJjuBAYsvU1bJguynep4OpcpYQVgFeNuMZhhceS545Sbm kjxjtxxUUOV4uDvYz8zYt1qwqwY+OTkQ6vsH3UxLIdAdqRLfkcxdPp/GawrJy0Gv3Fvw Furzg2Nhko1kcFP/gbdOsTuL/IWYJQrH9VE6mOuZroRFRuCBJIL+iXrendxb9pVgnF1B vJNi4L9HhBmmyH3Yu0YvRskc6u/gLEB80Ik5CZUMyQYGras5NlcwdCQfUifnHVn7jx/d EI9kKvdJD/0pIdckyaJkDqqto5GUi62bLDTIUEAlNHnLUqud2vw/9ahVoyI+izaAe1rS 70OA== X-Gm-Message-State: AEkoouu8k7SY3EvcjshbAih2xMHA/Akn1cIvq4OOdtl+u+/kXAq51M8wgX2JUqw9lyg66yW8hioKwdDtfbrELA== X-Received: by 10.202.85.215 with SMTP id j206mr1918565oib.150.1470959885900; Thu, 11 Aug 2016 16:58:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lavanya Jose Date: Thu, 11 Aug 2016 23:57:55 +0000 Message-ID: To: "Yeddula, Avinash" , "dev@dpdk.org" , "users@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] [dpdk-dev] rte_eth_rx bug? duplicate message bufs X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 23:58:07 -0000 Hi Avinash, For me it turned out to be a bug with duplicate detection code rather than with DPDK. The sequence numbers were wrapping over and I didn't have enough random bits for the payload either. - Lavanya On Thu, Aug 11, 2016 at 4:53 PM Yeddula, Avinash wrote: > Hi All, > I do have a similar issue, any response to the below email might help me > as well. > > Thanks > -Avinash > > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Lavanya Jose > Sent: Monday, August 08, 2016 11:44 AM > To: users@dpdk.org; dev@dpdk.org > Subject: [dpdk-dev] rte_eth_rx bug? duplicate message bufs > > Hi, > > I was wondering if anyone on this list has come across this problem of > rte_eth_rx_burst returning the same mbuf contents multiple times especially > during congestion. I notice this problem after some number of calls to > rte_eth_rx_burst when I set the nb_pkts argument to anything more than 5. I > did confirm that the contents (random payloads) in the duplicate packets > are identical. > > I looked at the corresponding ixgbe driver code that gets packets from the > rx ring. > < > https://github.com/emmericp/dpdk/blob/e5b112e4c7a4d63f3131294e9611e4a892b75008/drivers/net/ixgbe/ixgbe_rxtx.c#L1595 > > > It looks like the driver doesn't drop packets if an mbuf allocation fails. > I'm not sure if this is the root cause of the bug I'm seeing? > > I'm also curious about whether I need to set rx_descs and tx_descs to 40 > when I'm setting up the Intel 82599 device? The datasheet says there's 40 > descriptors per TX queue though default values I've seen in code are much > larger.. > > Thanks, > Lavanya >