From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by dpdk.org (Postfix) with ESMTP id 9672220F for ; Thu, 5 Mar 2015 20:09:58 +0100 (CET) Received: by wesw62 with SMTP id w62so54969294wes.9 for ; Thu, 05 Mar 2015 11:09:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=Md6UxgezLe7YxqGAhtyIWUGqZFkmd5gjQoQdhVQDJjc=; b=JcbGsIOtdPfycVVtPlwRufyq8072zoJoSJ6zFSwZGa25DDgdQYysmo9V43wczTLx8h /lpPsBxpg2odmd14sxKo68fnVMPQ2hCkED9SCxAU5+qRf1Vv11sj+vbbD9a9Dfgl712A Y9McnxjycXu3+tIvdSlwLqp2dNW5vH2kR6WpPHocuIbzTBYGb2cWCgTXQm+VP4n1CmA+ v2aTiZoapigGTluTk9T05Aa+KJXOJaogRmtwB9xmKH9cMn0oVWUbsExsqqpXOjl0DvyD Zg0Q3eWuEcdtZQ2rH1s8jHIPTdxRSm9LusmKs2pcwBDj0HDGZ2sk2qYxfBXqgIBKjJIv zgCw== X-Gm-Message-State: ALoCoQn5gnEW8oYogwJXbxmc/74M1K7BDH6TY97AJmrkIedTMs54FNPdU/FVrs+FBDdb3tDHMpkB X-Received: by 10.194.8.99 with SMTP id q3mr22140798wja.88.1425582598470; Thu, 05 Mar 2015 11:09:58 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id uo6sm11733512wjc.49.2015.03.05.11.09.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Mar 2015 11:09:57 -0800 (PST) From: Thomas Monjalon To: "Liang, Cunming" Date: Thu, 05 Mar 2015 20:09:23 +0100 Message-ID: <3438008.U5zhG2V5Rg@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: <20150224161609.15f590df@urahara> <20150225170718.371163a1@urahara> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org, "Nemeth, Balazs" Subject: Re: [dpdk-dev] ixgbe vector mode not working. 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: Thu, 05 Mar 2015 19:09:58 -0000 2015-02-28 03:33, Liang, Cunming: > Hi Stephen, > > The root cause is about the rx descriptor number. > As we use below code to quick process the rx_tail wrap, it require rxd value is a 2^n. > "rxq->rx_tail = (uint16_t)(rxq->rx_tail & (rxq->nb_rx_desc - 1));" > We should add more checking on the input rxd, if checking fail, then tend to use scalar pmd. > Thanks for the report, I'll send fix patch soon. Fixed in http://dpdk.org/browse/dpdk/commit/?id=352078e8e196 Thanks > > -----Original Message----- > > From: Stephen Hemminger [mailto:stephen@networkplumber.org] > > Sent: Thursday, February 26, 2015 9:07 AM > > To: Liang, Cunming > > Cc: Nemeth, Balazs; Richardson, Bruce; Neil Horman; dev@dpdk.org > > Subject: Re: ixgbe vector mode not working. > > > > On Wed, 25 Feb 2015 08:49:48 +0000 > > "Liang, Cunming" wrote: > > > > > Hi Stephen, > > > > > > Thanks for the info, with rxd=4000, I can reproduce it. > > > On that time, it runs out of mbuf. > > > I'll follow up this issue. > > > > The first time I ran it, the code was configure rx/tx conf > > which was leftover from older versions. > > > > Second time I ran it and the same hang happened. > > Looking at mbuf pool statistics I see that it gets exhausted, > > even when extra mbuf's are added to the pool. > > > > Looks like a memory leak.