From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 0EE9A967 for ; Sat, 28 Feb 2015 04:34:05 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 27 Feb 2015 19:29:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,665,1418112000"; d="scan'208";a="684682833" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by fmsmga002.fm.intel.com with ESMTP; 27 Feb 2015 19:33:55 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.195.1; Sat, 28 Feb 2015 11:33:54 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.62]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.192]) with mapi id 14.03.0195.001; Sat, 28 Feb 2015 11:33:53 +0800 From: "Liang, Cunming" To: Stephen Hemminger Thread-Topic: ixgbe vector mode not working. Thread-Index: AQHQUJBNLVk7O7HBjk+sxYl37qBGDp0AvJVg//+30YCAAJElkIAAlFkAgAPSvPA= Date: Sat, 28 Feb 2015 03:33:52 +0000 Message-ID: References: <20150224161609.15f590df@urahara> <20150224233651.5e27e791@urahara> <20150225170718.371163a1@urahara> In-Reply-To: <20150225170718.371163a1@urahara> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "Nemeth, Balazs" , "dev@dpdk.org" 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: Sat, 28 Feb 2015 03:34:06 -0000 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 valu= e is a 2^n. "rxq->rx_tail =3D (uint16_t)(rxq->rx_tail & (rxq->nb_rx_desc - 1));" We should add more checking on the input rxd, if checking fail, then tend t= o use scalar pmd. Thanks for the report, I'll send fix patch soon. -Cunming > -----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. >=20 > On Wed, 25 Feb 2015 08:49:48 +0000 > "Liang, Cunming" wrote: >=20 > > Hi Stephen, > > > > Thanks for the info, with rxd=3D4000, I can reproduce it. > > On that time, it runs out of mbuf. > > I'll follow up this issue. >=20 > The first time I ran it, the code was configure rx/tx conf > which was leftover from older versions. >=20 > 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. >=20 > Looks like a memory leak.