From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D13DE567F for ; Fri, 12 May 2017 10:41:28 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 May 2017 01:41:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,328,1491289200"; d="scan'208";a="1168176678" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.42]) by fmsmga002.fm.intel.com with SMTP; 12 May 2017 01:41:26 -0700 Received: by (sSMTP sendmail emulation); Fri, 12 May 2017 09:41:25 +0100 Date: Fri, 12 May 2017 09:41:25 +0100 From: Bruce Richardson To: "Mastorakis, Spyridon" Cc: "dev@dpdk.org" Message-ID: <20170512084124.GA53020@bricha3-MOBL3.ger.corp.intel.com> References: <84F194B655461746B15919D288BD7AB02877EB@ORSMSX104.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84F194B655461746B15919D288BD7AB02877EB@ORSMSX104.amr.corp.intel.com> Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.0 (2017-02-23) Subject: Re: [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared 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: Fri, 12 May 2017 08:41:29 -0000 On Thu, May 11, 2017 at 09:33:32PM +0000, Mastorakis, Spyridon wrote: > Hi guys, > > When I compile the DPDK libraries as shared (by modifying the base_config file) and try to run an application (e.g., l3fwd), I get an error that port 0 is not present on board. > > I have cleaned the system several times (unbinded NICs, removed igb_uio and uio modules and hugepage mappings) and have configured everything again, but this does not resolve the issue. I am also not able to add a virtual device (specifically a virtual ring) when I compile as a shared library (no PMD drivers found). > > When I compile the DPDK libraries as static though, everything works perfectly fine and I can run the DPDK applications and add virtual rings. > > I have tried dpdk-17.02 and the latest stable dpdk version (16.11.1), but none of them seems to work. > > Do you have any clue why this is happening? > > Thank you in advance, > Spyros When compiled as a shared lib, are you passing in the "-d" parameters to make sure that the PMDs are actually loaded by the app. Unlike the static version, they are not automatically linked in the shared lib build. /Bruce