From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rgout02.bt.lon5.cpcloud.co.uk (rgout0203.bt.lon5.cpcloud.co.uk [65.20.0.202]) by dpdk.org (Postfix) with ESMTP id 22DA12C72 for ; Tue, 20 Jun 2017 18:21:42 +0200 (CEST) X-OWM-Source-IP: 10.110.12.1 () X-OWM-Env-Sender: terry.montague.1980@btinternet.com Received: from webmail26.bt.ext.cpcloud.co.uk (10.110.12.1) by rgout02.bt.lon5.cpcloud.co.uk (9.0.019.13-1) (authenticated as terry.montague.1980@btinternet.com) id 58482B9714B76098; Tue, 20 Jun 2017 17:21:41 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btinternet.com; s=btcpcloud; t=1497975702; bh=lr/4ekqY5IInr4xz2qdBxafzdGrPcmWL176cch3OmIg=; h=Date:From:Reply-To:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version; b=TD9YkIpP5zVVrTsU4kh3olWE7jXUlXxmyHULhAmtIFUCaDOzMgjl6LAIgag0ll95rNWF+tDnoXRzOZDX3sLkh+hLz/2t1kKJYD9fmSovuE7J8+9/QNGP1xanv/S7p4wys9+5igeMEtEHnDoW1rG4Rs4fMgMsCEAf27T0eNFizoc= Date: Tue, 20 Jun 2017 17:21:41 +0100 (BST) From: "terry.montague.1980@btinternet.com" To: gaetan.rivet@6wind.com Cc: users@dpdk.org Message-ID: <24012021.44488.1497975701541.JavaMail.defaultUser@defaultHost> In-Reply-To: <20170620155733.GK29091@bidouze.vm.6wind.com> References: <12471190.37650.1497970027948.JavaMail.defaultUser@defaultHost> <20170620145705.GI29091@bidouze.vm.6wind.com> <18287610.38744.1497970879233.JavaMail.defaultUser@defaultHost> <8604398.38970.1497971090851.JavaMail.defaultUser@defaultHost> <20170620155733.GK29091@bidouze.vm.6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-CP-REPLY-ALL-UID: 8 X-CP-REPLY-ALL-UID: 8 X-CP-REPLY-ALL-UID: 8 X-CP-REPLY-ALL-UID: 8 X-CP-REPLY-ALL-PATH: INBOX X-CP-REPLY-ALL-PATH: INBOX X-CP-REPLY-ALL-PATH: INBOX X-CP-REPLY-ALL-PATH: INBOX Importance: 3 (Normal) X-Priority: 3 (Normal) X-Client-IP: IPv4[86.138.183.88] Epoch[1497975701481] Subject: Re: [dpdk-users] Using DPDK with a pre-existing C++ application compiled in Eclipse. X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: terry.montague.1980@btinternet.com List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 16:21:42 -0000 Hi Gaetan, I mean I'm building DPDK before I link with my app eclipse. Switching CONFIG_RTE_BUILD_SHARED_LIB to 'y', rebuilding DPDK and adding -= d options for the path as well as librte_pmd_i40e.so.1.1 going into rte_ea= l_init(), I'm seeing the devices being detected. Any ideas on this problem with libdpdk.so below ? Many thanks=20 Terry EAL: Running eal_plugins_init EAL: open shared lib librte_pmd_i40e.so.1.1 EAL: open shared lib /usr/local/lib/librte_net.so.1.1 EAL: open shared lib /usr/local/lib/librte_port.so.3.1 EAL: open shared lib /usr/local/lib/libboost_random.so.1.63.0 EAL: open shared lib /usr/local/lib/libboost_math_c99l.so.1.63.0 EAL: open shared lib /usr/local/lib/libApp.so EAL: open shared lib /usr/local/lib/libmc_enc_vc1.so EAL: open shared lib /usr/local/lib/libboost_fiber.so EAL: open shared lib /usr/local/lib/libmc_dec_dv100.so EAL: open shared lib /usr/local/lib/libmc_mfimport.so EAL: open shared lib /usr/local/lib/librte_pmd_crypto_scheduler.so.1.1 EAL: open shared lib /usr/local/lib/librte_eal.so EAL: open shared lib /usr/local/lib/librte_mempool.so EAL: open shared lib /usr/local/lib/librte_pmd_bnxt.so.1.1 EAL: open shared lib /usr/local/lib/librte_mbuf.so EAL: open shared lib /usr/local/lib/libboost_math_c99f.so EAL: open shared lib /usr/local/lib/librte_pmd_bnxt.so EAL: open shared lib /usr/local/lib/libmc_config_vc3.so EAL: open shared lib /usr/local/lib/libboost_date_time.so.1.63.0 EAL: open shared lib /usr/local/lib/libboost_math_tr1.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_lpm.so EAL: open shared lib /usr/local/lib/libboost_context.so.1.63.0 EAL: open shared lib /usr/local/lib/libmc_enc_mp2v.so EAL: open shared lib /usr/local/lib/libPixelXMLProtocol.so EAL: open shared lib /usr/local/lib/libboost_random.so EAL: open shared lib /usr/local/lib/libboost_iostreams.so EAL: open shared lib /usr/local/lib/libmc_enc_j2k.so EAL: open shared lib /usr/local/lib/librte_pmd_bond.so EAL: open shared lib /usr/local/lib/libboost_chrono.so EAL: open shared lib /usr/local/lib/librte_meter.so EAL: open shared lib /usr/local/lib/librte_pmd_bond.so.1.1 EAL: open shared lib /usr/local/lib/libboost_log.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_hash.so.2.1 EAL: open shared lib /usr/local/lib/libboost_wserialization.so EAL: open shared lib /usr/local/lib/libboost_chrono.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_acl.so.2.1 EAL: open shared lib /usr/local/lib/libmc_parser_sdp.so EAL: open shared lib /usr/local/lib/librte_metrics.so.1.1 EAL: open shared lib /usr/local/lib/librte_pmd_ring.so.2.1 EAL: open shared lib /usr/local/lib/libmc_demux_mxf.so EAL: open shared lib /usr/local/lib/libmc_demux_dv.so EAL: open shared lib /usr/local/lib/librte_latencystats.so EAL: open shared lib /usr/local/lib/librte_pipeline.so.3.1 EAL: open shared lib /usr/local/lib/librte_cryptodev.so.2.1 EAL: open shared lib /usr/local/lib/libboost_filesystem.so EAL: open shared lib /usr/local/lib/libmc_demux_asf.so EAL: open shared lib /usr/local/lib/librte_pmd_skeleton_event.so EAL: open shared lib /usr/local/lib/libmc_demux_mp4.so EAL: open shared lib /usr/local/lib/libboost_program_options.so.1.63.0 EAL: open shared lib /usr/local/lib/libboost_serialization.so.1.63.0 EAL: open shared lib /usr/local/lib/libmc_bc_dec_avc.so EAL: open shared lib /usr/local/lib/librte_eventdev.so EAL: open shared lib /usr/local/lib/librte_ring.so EAL: open shared lib /usr/local/lib/libdemo_trans_audio_converter.so EAL: open shared lib /usr/local/lib/libboost_locale.so EAL: open shared lib /usr/local/lib/libboost_unit_test_framework.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_sched.so EAL: open shared lib /usr/local/lib/libboost_graph.so.1.63.0 EAL: open shared lib /usr/local/lib/libmc_enc_mpa.so EAL: open shared lib /usr/local/lib/librte_bitratestats.so.1.1 EAL: open shared lib /usr/local/lib/librte_cmdline.so.2.1 EAL: open shared lib /usr/local/lib/librte_pmd_lio.so.1.1 EAL: open shared lib /usr/local/lib/librte_pmd_af_packet.so EAL: open shared lib /usr/local/lib/libboost_regex.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_efd.so EAL: open shared lib /usr/local/lib/librte_pmd_fm10k.so.1.1 EAL: open shared lib /usr/local/lib/libboost_math_tr1l.so.1.63.0 EAL: open shared lib /usr/local/lib/libboost_timer.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_latencystats.so.1.1 EAL: open shared lib /usr/local/lib/libmc_bc_net_source.so EAL: open shared lib /usr/local/lib/librte_pmd_octeontx_ssovf.so.1.1 EAL: open shared lib /usr/local/lib/librte_pmd_thunderx_nicvf.so.1.1 EAL: open shared lib /usr/local/lib/librte_timer.so EAL: open shared lib /usr/local/lib/libboost_coroutine.so EAL: open shared lib /usr/local/lib/libboost_math_tr1l.so EAL: open shared lib /usr/local/lib/librte_mempool_ring.so EAL: open shared lib /usr/local/lib/libDNxHR.so EAL: open shared lib /usr/local/lib/libmc_mux_asf.so EAL: open shared lib /usr/local/lib/librte_cfgfile.so.2.1 EAL: open shared lib /usr/local/lib/librte_pmd_nfp.so.1.1 EAL: open shared lib /usr/local/lib/libmc_bc_enc_avc.so EAL: open shared lib /usr/local/lib/librte_eal.so.4.1 EAL: open shared lib /usr/local/lib/librte_pmd_vmxnet3_uio.so.1.1 EAL: open shared lib /usr/local/lib/librte_pmd_ark.so.1.1 EAL: open shared lib /usr/local/lib/librte_meter.so.1.1 EAL: open shared lib /usr/local/lib/librte_reorder.so EAL: open shared lib /usr/local/lib/libboost_fiber.so.1.63.0 EAL: open shared lib /usr/local/lib/libboost_iostreams.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_pmd_sfc_efx.so EAL: open shared lib /usr/local/lib/libboost_context.so EAL: open shared lib /usr/local/lib/libboost_type_erasure.so EAL: open shared lib /usr/local/lib/librte_lpm.so.2.1 EAL: open shared lib /usr/local/lib/libboost_thread.so EAL: open shared lib /usr/local/lib/libmc_net_source.so EAL: open shared lib /usr/local/lib/librte_efd.so.1.1 EAL: open shared lib /usr/local/lib/libboost_coroutine.so.1.63.0 EAL: open shared lib /usr/local/lib/librte_pmd_sw_event.so EAL: open shared lib /usr/local/lib/libmc_manifest_generator.so EAL: open shared lib /usr/local/lib/libAVX2Support.so EAL: open shared lib /usr/local/lib/libmc_dec_spic.so EAL: open shared lib /usr/local/lib/libPipeline.so EAL: open shared lib /usr/local/lib/librte_pmd_ark.so EAL: open shared lib /usr/local/lib/libmc_dec_mp2v.so EAL: open shared lib /usr/local/lib/librte_eventdev.so.1.1 EAL: open shared lib /usr/local/lib/librte_pmd_virtio.so.1.1 EAL: open shared lib /usr/local/lib/librte_pmd_cxgbe.so.1.1 EAL: open shared lib /usr/local/lib/libboost_unit_test_framework.so EAL: open shared lib /usr/local/lib/libdpdk.so EAL: /usr/local/lib/libdpdk.so: invalid ELF header EAL: FATAL: Cannot init plugins ----Original message---- >>From : gaetan.rivet@6wind.com Date : 20/06/17 - 16:57 (BST) To : terry.montague.1980@btinternet.com Cc : users@dpdk.org Subject : Re: [dpdk-users] Using DPDK with a pre-existing C++ application c= ompiled in Eclipse. On Tue, Jun 20, 2017 at 04:04:50PM +0100, terry.montague.1980@btinternet.co= m wrote: >=20 >=20 > Hi Ga=C3=ABtan, >=20 > Its really only the net-i40e driver I need (for Intel XL710 cards). I'm n= ot building DPDK itself as a shared library though. >=20 Where are you getting your prebuilt rte_ libs? If you have the corresponding archive file, do you link rte_pmd_i40e? > Best Regards >=20 > Terry >=20 >=20 >=20 > ----Original message---- > From : gaetan.rivet@6wind.com > Date : 20/06/17 - 15:57 (BST) > To : terry.montague.1980@btinternet.com > Cc : users@dpdk.org > Subject : Re: [dpdk-users] Using DPDK with a pre-existing C++ application= compiled in Eclipse. >=20 > Hi, >=20 > On Tue, Jun 20, 2017 at 03:47:07PM +0100, terry.montague.1980@btinternet.= com wrote: > > Hi there, > > Please excuse what to some may appear to be an stupid question. > > I'm trying to use DPDK with an existing C++ application on Linux, using= Eclipse Neon.2 as the IDE due to the use of a lot of 3rd party libraries. = I'm not using the DPDK build process with the .mk makefiles. I'm just linki= ng to the prebuilt rte_ libs. > > I have got the project to compile, but when running rte_eal_init() with= some suitable arguments that I know to be good in a simple standalone appl= ication, the PMDs appear to be absent, so the app cannot probe any PCI devi= ces. > > Is there any way this approach is going to work, or do applications tha= t use DPDK have to be compiled as per the example applications with rte.var= s.mk/rte.extapp.mk ? > > Thanks in advance. > > Terry >=20 > Which NIC are you using? Which PMD do you need? >=20 > You can dynamically link specific DPDK drivers using -d in the EAL > parameters. Note that using PMDs as dynamic libraries may slightly > impair performances. >=20 > --=20 > Ga=C3=ABtan Rivet > 6WIND >=20 >=20 --=20 Ga=C3=ABtan Rivet 6WIND