From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 6FFAE101B for ; Fri, 24 Mar 2017 14:15:54 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 24 Mar 2017 06:15:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,214,1486454400"; d="scan'208";a="239915957" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by fmsmga004.fm.intel.com with ESMTP; 24 Mar 2017 06:15:52 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.101]) by IRSMSX103.ger.corp.intel.com ([169.254.3.8]) with mapi id 14.03.0248.002; Fri, 24 Mar 2017 13:15:51 +0000 From: "Pattan, Reshma" To: Thomas Monjalon , zhaozhanxu CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries Thread-Index: AQHSmZ3UQ0NVIik3/0+9ztnapC3XWqGkDhug Date: Fri, 24 Mar 2017 13:15:51 +0000 Message-ID: <3AEA2BF9852C6F48A459DA490692831F01113D0B@irsmsx110.ger.corp.intel.com> References: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com> <2831820.tJVZXKyIra@xps13> In-Reply-To: <2831820.tJVZXKyIra@xps13> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmY2MDhhNWEtZDI2ZC00Zjg4LTkwZGMtOTY1ZjQ3OGJiYzQ3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Im1DXC9vb0l2NzA1V3VUaEtSN0JJTXFJREs2TWlkS3dXYlZjaDdNZktnOHN3PSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries 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, 24 Mar 2017 13:15:55 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Thomas Monjalon > Sent: Friday, March 10, 2017 12:56 PM > To: zhaozhanxu > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] app/pdump: fix pdump can't find the drive= r > when compiled dpdk to shared libraries >=20 > 2017-03-03 17:27, zhaozhanxu: > > When I compiled dpdk With configuration > > "CONFIG_RTE_BUILD_SHARED_LIB=3Dy", I get error message "EAL: no driver > > found for net_pcap_rx_0" and > > "EAL: Driver cannot attach the device (net_pcap_rx_0)" by running pdump= . > > So I add library librte_pmd_pcap.so. > [...] > > +ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y) > > + _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_PCAP) +=3D -lrte_pmd_pcap endif >=20 > The idea of having drivers as shared libraries is to use them as plugins. > We are not going to link the applications with every drivers. > Instead we load them explicitly with -d option. >=20 > Someone should document it in > http://dpdk.org/doc/guides/linux_gsg/build_sample_apps.html#running-a- > sample-application > Any volunteer? I will update the doc. Thanks, Reshma