From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 0BC532986 for ; Wed, 20 Apr 2016 10:32:39 +0200 (CEST) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 25BAD811A7; Wed, 20 Apr 2016 08:32:38 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-4-62.ams2.redhat.com [10.36.4.62]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3K8Wa59006789; Wed, 20 Apr 2016 04:32:37 -0400 To: apanda@cs.berkeley.edu, users@dpdk.org References: <57158D01.5020407@cs.berkeley.edu> From: Panu Matilainen Message-ID: <57173EA4.9000208@redhat.com> Date: Wed, 20 Apr 2016 11:32:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <57158D01.5020407@cs.berkeley.edu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 Subject: Re: [dpdk-users] DPDK 16.04 link changes cause PMD drivers to not be loaded X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 08:32:39 -0000 On 04/19/2016 04:42 AM, Aurojit Panda wrote: > Hi > I was trying to run testpmd from DPDK 16.04 on Linux with kernel version > 4.4.0-1 (ld version 2.26). My machine has two > XL710QDA2 NICs, and I built DPDK as a shared, combined library (i.e., > CONFIG_RTE_BUILD_SHARED_LIB=y and > CONFIG_RTE_BUILD_COMBINE_LIBS=y in config/common_linuxapp). I found that > the issue is due to ld not linking against all > libraries with the new linker script (introduced in 948fd64befc3726) but > am not sure how to fix this. As evidence for > this being caused by this change: > [...] > As you can see librte_pmd_i40e.so is missing from the list of files. > Furthermore, using > > $ LD_PRELOAD="../lib/librte_pmd_i40e.so" ./testpmd -c 0x1c00 -n 4 -w > 82:00.0 -w 82:00.1 --file-prefix "send" -- -i > correctly enumerates the NICs. > > I unfortunately do not how to fix the linker script as checked in, but > wanted to report this bug in case someone has a fix. The PMDs are plugins which are not really supposed to be linked in but loaded dynamically. Set CONFIG_RTE_EAL_PMD_PATH to the location of your drivers and they'll get loaded on DPDK initialization. - Panu -