From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by dpdk.org (Postfix) with ESMTP id 0C301292D for ; Wed, 20 Apr 2016 16:26:11 +0200 (CEST) Received: by mail-pa0-f42.google.com with SMTP id zm5so18412665pac.0 for ; Wed, 20 Apr 2016 07:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-transfer-encoding; bh=oZuVRpUGuW7nKcOU+s5RbYzjHtqULU7yftyP+4RTnXo=; b=qNGaFlOZIwoVHkX+TJ1zA4qK1nh053iou8wbgD92onzTe1M9dmUXJr4n+ZA2AFJj7c TaSioI6rFs205LUez/w0H2bhbhKu3u+48DsfpyVJI0TQMYCvxy2SrarWo1psSwMDxM+e sHkoZfIUwcaXdkQQnsyngGrjCdlsMOMW7O+0BWh9VkM1z/P9mb36/KYLO//5XKGaaohK tK/rJNPKNC80W8h+J31Kx7a+eLYXRBV27WIaGdxgJS2Fq/DpcLIdjiw/M1erBkirykiL +1HhVW4/GLnqDFwSggNEsuxfFf8SbRiafpYayK3kuISmyK5TxIDxvf4k/Bw7b1zrB8xT ng8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to :content-transfer-encoding; bh=oZuVRpUGuW7nKcOU+s5RbYzjHtqULU7yftyP+4RTnXo=; b=iTfCKblh9dTgXSuq7X+Ao7R78Tu13jZmmB3ceAvFLU4/RmN+iG1mGzom7W3RwjZhAd HUY0Jfhcpp9VlPgyMJkiXBacpkeYT1wF6IgiNqDUgiWnS596yEVINP99n6XwFxFa0/iT y+1oebxJlBAqsrviUuzOOuHogHjbAUyIWVFoxRDdWBm3EvLj8U+aPAxOs0IsUAV37PHK oXn2rpXz4BbSO4xg5OiimWegFy+4kM9LefHm8qJq8ZSX5+0sK2OKqR19mWvveysojak3 qWjddMhV1wEEniNkGf/wGJpt8pZFYORBwMrROzX/ScLq0jBClHKxLOTPUJUAC4s2DLdU wR2w== X-Gm-Message-State: AOPr4FWyBztTULa6bqQOtcUtQcOQRG3CsCOAyLytyEw8rBsfyD3g5co49kUXpM6bX8ib0A== X-Received: by 10.66.249.166 with SMTP id yv6mr12459554pac.91.1461162370068; Wed, 20 Apr 2016 07:26:10 -0700 (PDT) Received: from Pnueli.local ([2601:644:200:ade7:68ac:2721:7bf5:d749]) by smtp.gmail.com with ESMTPSA id a77sm52900030pfj.2.2016.04.20.07.26.07 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 20 Apr 2016 07:26:08 -0700 (PDT) Sender: Aurojit Panda Message-ID: <5717917D.9030504@cs.berkeley.edu> Date: Wed, 20 Apr 2016 07:26:05 -0700 From: Aurojit Panda User-Agent: Postbox 4.0.8 (Macintosh/20151105) MIME-Version: 1.0 To: Panu Matilainen CC: users@dpdk.org References: <57158D01.5020407@cs.berkeley.edu> <57173EA4.9000208@redhat.com> In-Reply-To: <57173EA4.9000208@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Reply-To: apanda@cs.berkeley.edu List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2016 14:26:11 -0000 I am sorry that is a bit unintuitive considering: (a) This behavior differs between static and shared builds of DPDK. - In fact this behavior was identical in 2.2, and even in mainline before 948fd64befc3726 went in. (b) You already know the EAL_PMD_PATH at build time, and it makes it quite hard to ship scripts or anything to build DPDK, since now the configuration file becomes dependent on location. I wonder if you would consider changing this, as it stands just building DPDK after setting CONFIG_RTE_SHARED_LIB=y results in a testpmd that cannot run. Thanks Panda Panu Matilainen wrote: > 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 - >