From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: ixgbe vector mode not working. Date: Thu, 05 Mar 2015 20:09:23 +0100 Message-ID: <3438008.U5zhG2V5Rg@xps13> References: <20150224161609.15f590df@urahara> <20150225170718.371163a1@urahara> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org, "Nemeth, Balazs" To: "Liang, Cunming" Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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-OTpzqLSitTUnbdJkjeBofR2eb7JE58TQ@public.gmane.org] > > Sent: Thursday, February 26, 2015 9:07 AM > > To: Liang, Cunming > > Cc: Nemeth, Balazs; Richardson, Bruce; Neil Horman; dev-VfR2kkLFssw@public.gmane.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.