From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id DC6DD1B19 for ; Mon, 10 Sep 2018 12:46:57 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 03:46:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,355,1531810800"; d="scan'208";a="90399510" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.107]) by orsmga002.jf.intel.com with SMTP; 10 Sep 2018 03:46:54 -0700 Received: by (sSMTP sendmail emulation); Mon, 10 Sep 2018 11:46:51 +0100 Date: Mon, 10 Sep 2018 11:46:51 +0100 From: Bruce Richardson To: "Shubhachint, Chaitanya" Cc: "dev@dpdk.org" Message-ID: <20180910104651.GA24376@bricha3-MOBL.ger.corp.intel.com> References: <59AF69C657FD0841A61C55336867B5B07268C8AF@IRSMSX103.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and Development Ireland Ltd. User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] DPDK Shared lib: No Ethernet ports 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: Mon, 10 Sep 2018 10:46:58 -0000 On Fri, Sep 07, 2018 at 05:11:21PM +0000, Shubhachint, Chaitanya wrote: > Thank you for your reply Bruce. > Still having issues with shared-lib DPDK. I tried both options and get two distinct issues. > I tried running the l2fwd example with e1000 driver and get little farther. This time it does find the devices but there is an error with MBUF > > root:build$./l2fwd -d /home/sp2/dpdk-18.08/x86_64-native-linuxapp-gcc/lib/librte_pmd_e1000.so > EAL: Detected 6 lcore(s) > EAL: Detected 1 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: No free hugepages reported in hugepages-1048576kB > EAL: Probing VFIO support... > EAL: PCI device 0000:00:19.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 8086:1502 net_e1000_em > EAL: PCI device 0000:06:00.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 8086:1521 net_e1000_igb > EAL: PCI device 0000:06:00.1 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 8086:1521 net_e1000_igb > EAL: PCI device 0000:06:00.2 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 8086:1521 net_e1000_igb > EAL: PCI device 0000:06:00.3 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 8086:1521 net_e1000_igb > EAL: PCI device 0000:08:00.0 on NUMA socket -1 > EAL: Invalid NUMA socket, default to 0 > EAL: probe driver: 8086:10d3 net_e1000_em > MAC updating enabled > MBUF: error setting mempool handler > EAL: Error - exiting with code: 1 > Cause: Cannot init mbuf pool > > 2nd Option of setting CONFIG_RTE_EAL_PMD_PATH option is ideal, but I run into issue with as well. I am configuring and installing the DPDK with CONFIG_RTE_EAL_PMD_PATH set as > CONFIG_RTE_EAL_PMD_PATH=$(HOME)/dpdk-18.08/x86_64-native-linuxapp-gcc/lib > > I this case I get following error when I run l2fwd > > root:build$./l2fwd > EAL: Detected 6 lcore(s) > EAL: Detected 1 NUMA nodes > EAL: /home/sp2/dpdk-18.08/x86_64-native-linuxapp-gcc/lib/libdpdk.so: invalid ELF header > EAL: FATAL: Cannot init plugins > > EAL: Cannot init plugins > > EAL: Error - exiting with code: 1 > Cause: Invalid EAL arguments > To use CONFIG_RTE_EAL_PMD_PATH, you really need to have the drivers all in a separate directory, without any additional libs present. Other non-PMD libraries will cause the error above when they are loaded. /Bruce