From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0080.outbound.protection.outlook.com [104.47.0.80]) by dpdk.org (Postfix) with ESMTP id 04F992E8A for ; Wed, 12 Apr 2017 12:26:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ybFBot2453HMnRd4Nw+HFVbs2KcevgFWzQJyK5w5NAw=; b=MWTZDwSVx894JDSnw41Xk8coraCfwXktTHLhPYj5o4vNQ9FapwkRLZ2WGqWxthmIs866IabICfdS6EBgmpVgR7w6Geq8Y2E+mVKRDjsP+M8RRWr8NUD/fs6R35+FLH8eVTbq30gHLSDJqL4XX9su7a3xsKjG+yfhIsZ+19VznC4= Received: from VI1PR0401MB2464.eurprd04.prod.outlook.com (10.168.64.147) by VI1PR0401MB2463.eurprd04.prod.outlook.com (10.168.64.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Wed, 12 Apr 2017 10:26:26 +0000 Received: from VI1PR0401MB2464.eurprd04.prod.outlook.com ([10.168.64.147]) by VI1PR0401MB2464.eurprd04.prod.outlook.com ([10.168.64.147]) with mapi id 15.01.1019.025; Wed, 12 Apr 2017 10:26:26 +0000 From: Shreyansh Jain To: Bruce Richardson CC: Thomas Monjalon , john miller , "dev@dpdk.org" , "olivier.matz@6wind.com" Thread-Topic: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y Thread-Index: AQHSsvnI2e0Pji/1mkmkConF81MA66HBKgfwgABYnQCAAATLkA== Date: Wed, 12 Apr 2017 10:26:07 +0000 Deferred-Delivery: Wed, 12 Apr 2017 10:25:45 +0000 Message-ID: References: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> <1675520.qVeAGBHxLM@xps13> <20170412100521.GB20092@bricha3-MOBL3.ger.corp.intel.com> In-Reply-To: <20170412100521.GB20092@bricha3-MOBL3.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.169.1] x-microsoft-exchange-diagnostics: 1; VI1PR0401MB2463; 7:bS86BQJz2ziE93UIeNKavuv1l8V+7mDcA1ZflsNuO+kPeQ+PAOZaRtY+yh7agEV4f+uMckRlBSouN6RPUOS38Gx7jyo+AP/ylJNarxjQ/d1ueuIy4Tk2hEZmmPSUAWRTKLOhZpFPBEghE6+ShIgOK12argFV7rXCONrHi/6S5Uw0XkfY6pCI9b7wPHB2QbpdzAJfq0dDHakhbyc//Laf1Oj1vooPVV901VXD4E8qp0neOr0BjXcnUcwx3X75X+ZpM7IHitj+7R6RWkyLzp0ac1iVyQVKYKSdQGJ6hzvlAvqoRWDqUNeKqeegvGZMpKJPdo0+vVBbRv5AfwFlrjN1bA== x-ms-office365-filtering-correlation-id: b6a75a89-8711-4018-9dda-08d4818e6010 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0401MB2463; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:VI1PR0401MB2463; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2463; x-forefront-prvs: 027578BB13 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39860400002)(39840400002)(39410400002)(39850400002)(39400400002)(24454002)(377424004)(13464003)(377454003)(229853002)(54906002)(86362001)(110136004)(38730400002)(55016002)(6666003)(33656002)(3280700002)(99286003)(2900100001)(7696004)(8676002)(3660700001)(8936002)(77096006)(6436002)(2950100002)(81166006)(6506006)(2906002)(6916009)(102836003)(3846002)(53546009)(74316002)(6246003)(54356999)(305945005)(25786009)(76176999)(7736002)(4326008)(50986999)(53936002)(5660300001)(189998001)(122556002)(6116002)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2463; H:VI1PR0401MB2464.eurprd04.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2017 10:26:26.1291 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2463 Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y 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: Wed, 12 Apr 2017 10:26:28 -0000 > -----Original Message----- > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > Sent: Wednesday, April 12, 2017 3:35 PM > To: Shreyansh Jain > Cc: Thomas Monjalon ; john miller > ; dev@dpdk.org; olivier.matz@6wind.com > Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB= =3Dy >=20 > On Wed, Apr 12, 2017 at 04:52:47AM +0000, Shreyansh Jain wrote: > > > -----Original Message----- > > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > > Sent: Wednesday, April 12, 2017 12:58 AM > > > To: john miller > > > Cc: dev@dpdk.org; olivier.matz@6wind.com; Shreyansh Jain > > > > > > Subject: Re: [dpdk-dev] error in testpmd when > CONFIG_RTE_BUILD_SHARED_LIB=3Dy > > > > > > 2017-04-11 14:02, john miller: > > > > > > > > We are seeing an issue when running from the head of the master bra= nch > in > > > dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=3Dy. Wh= en we > run > > > testpmd using -d to point to our PMD we get this error > > > > > > > > EAL: Error - exiting with code: 1 > > > > Cause: Creation of mbuf pool for socket 0 failed: Invalid argumen= t > > > > > > > > This error occurs as a result of the rte mempool ops table having 0 > > > entries. This table is populated from a call to > rte_mempool_register_ops(). > > > This function gets called in rte_mempool_ring.c via the static > initialization > > > MACRO MEMPOOL_REGISTER_OPS and exists in librte_mempool_ring.so. How= ever > > > this library is not loaded when the rte_eal_init() gets called so the > static > > > initializers are not yet loaded. > > > > > > > > I am requesting advice on the proper way to repair this. > > > > "-d" the ring library (rte_mempool_ring) - just like any other shared l= ib. > > >=20 > I think this is a bug that should be fixed. The user should not need to > have to specify a mempool driver just to get testpmd working, so I think > the ring handler as default should be compiled in automatically so as to > allow regular mempools to just work as before. =20 For Ring Mempool as default enabled, +1 >=20 > > This change was done recently to move ring handler into its separate > drivers/mempool/ring directory. That also means it no longer is compiled = into > the librte_mempool. > > > > > > > > We should just add a better error message if no mempool driver is > available. > > > > Yes, that is something to be improved. >=20 > This should be fixed by always having a mempool driver installed. =20 Agree. Otherwise also, the framework seems to be replying with a valid code 'EINVA= L' for an invalid mempool specified. >=20 > /Bruce