From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: zhaozhanxu <zhaozhanxu@163.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] app/pdump: fix pdump can't find the driver when compiled dpdk to shared libraries
Date: Fri, 10 Mar 2017 13:56:29 +0100 [thread overview]
Message-ID: <2831820.tJVZXKyIra@xps13> (raw)
In-Reply-To: <1488533270-9548-1-git-send-email-zhaozhanxu@163.com>
2017-03-03 17:27, zhaozhanxu:
> When I compiled dpdk With configuration "CONFIG_RTE_BUILD_SHARED_LIB=y",
> 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) += -lrte_pmd_pcap
> +endif
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.
Someone should document it in
http://dpdk.org/doc/guides/linux_gsg/build_sample_apps.html#running-a-sample-application
Any volunteer?
next prev parent reply other threads:[~2017-03-10 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 9:27 zhaozhanxu
2017-03-10 12:56 ` Thomas Monjalon [this message]
2017-03-24 13:15 ` Pattan, Reshma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2831820.tJVZXKyIra@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=dev@dpdk.org \
--cc=zhaozhanxu@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).