From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0041.outbound.protection.outlook.com [104.47.2.41]) by dpdk.org (Postfix) with ESMTP id AB58CDE0 for ; Wed, 12 Apr 2017 06:53:54 +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=XpGyjTDFDU0QqwbUKZ5Ks7ReDuXRV9S8+tcCs613UcM=; b=moXmHzK2kTN6KBKsxp+FoqTH1F5klHUlX8Guw5gjVvA6fxTv/q2O4fAKv69sWkGoyCjWm2WRmOwQCLTgEvnQtp1LsYHVL5ITR7NvyV3rp1XCdK3W9H0zRQDtqvuRmghJmrKv6CO20MtboiU6tKa7nJVGWTogZrJl+M2ADOxoeys= Received: from VI1PR0401MB2464.eurprd04.prod.outlook.com (10.168.64.147) by VI1PR0401MB2461.eurprd04.prod.outlook.com (10.168.64.144) 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 04:53:53 +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 04:53:52 +0000 From: Shreyansh Jain To: Thomas Monjalon , john miller CC: "dev@dpdk.org" , "olivier.matz@6wind.com" Thread-Topic: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y Thread-Index: AQHSsvnI2e0Pji/1mkmkConF81MA66HBKgfw Date: Wed, 12 Apr 2017 04:52:47 +0000 Deferred-Delivery: Wed, 12 Apr 2017 04:52:42 +0000 Message-ID: References: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> <1675520.qVeAGBHxLM@xps13> In-Reply-To: <1675520.qVeAGBHxLM@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [192.88.169.1] x-microsoft-exchange-diagnostics: 1; VI1PR0401MB2461; 7:vn7CMxca8iEI9taztYmKR5tqHPb7DCOVdjCh9LGeWOpiqut946m8VFGmtJ9A0ErF0cTeofu1ptbeg/EhRb1df3MUu6hwIl1wyBX7pXH9Q/cGVj/ViXsHxNZtntCcecrlD//k4QxqJXuaibUBQCnXrkOSfNejS+P0eFZlnakefsz0W69WlkGub+HWkWota/ULMd5l6jCSlk7hIXonWC3Bye3MOj/rlkVFA3JiZ3FQd99HDnL21yrqnY670f23biNNEoLM7rX1zg2BJuCzffg6xPriXHndYlckE32vxrVZ9zTBl5zE6Foayok1kMRCJLxmZmF1S1mzC7lwewwi8PqqJg== x-ms-office365-filtering-correlation-id: 0fe14c28-2bab-48f8-bfbc-08d4815feada x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR0401MB2461; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(6072148); SRVR:VI1PR0401MB2461; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2461; x-forefront-prvs: 027578BB13 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(39840400002)(39400400002)(39410400002)(39450400003)(39850400002)(377454003)(377424004)(76176999)(77096006)(53936002)(54356999)(6506006)(6666003)(6116002)(2950100002)(7696004)(6436002)(54906002)(7736002)(81166006)(55016002)(305945005)(9686003)(6246003)(229853002)(5660300001)(74316002)(8676002)(38730400002)(2906002)(66066001)(99286003)(122556002)(3660700001)(3846002)(50986999)(53546009)(3280700002)(4326008)(25786009)(86362001)(102836003)(2900100001)(33656002)(8936002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2461; 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 04:53:52.6611 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2461 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 04:53:55 -0000 > -----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 >=20 > 2017-04-11 14:02, john miller: > > > > We are seeing an issue when running from the head of the master branch = in > dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=3Dy. When w= e 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 argument > > > > 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 initializa= tion > MACRO MEMPOOL_REGISTER_OPS and exists in librte_mempool_ring.so. However > this library is not loaded when the rte_eal_init() gets called so the sta= tic > initializers are not yet loaded. > > > > I am requesting advice on the proper way to repair this. =20 "-d" the ring library (rte_mempool_ring) - just like any other shared lib. This change was done recently to move ring handler into its separate driver= s/mempool/ring directory. That also means it no longer is compiled into the= librte_mempool. >=20 > We should just add a better error message if no mempool driver is availab= le. Yes, that is something to be improved.