* [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared
@ 2017-05-11 21:33 Mastorakis, Spyridon
2017-05-12 8:41 ` Bruce Richardson
0 siblings, 1 reply; 3+ messages in thread
From: Mastorakis, Spyridon @ 2017-05-11 21:33 UTC (permalink / raw)
To: dev
Hi guys,
When I compile the DPDK libraries as shared (by modifying the base_config file) and try to run an application (e.g., l3fwd), I get an error that port 0 is not present on board.
I have cleaned the system several times (unbinded NICs, removed igb_uio and uio modules and hugepage mappings) and have configured everything again, but this does not resolve the issue. I am also not able to add a virtual device (specifically a virtual ring) when I compile as a shared library (no PMD drivers found).
When I compile the DPDK libraries as static though, everything works perfectly fine and I can run the DPDK applications and add virtual rings.
I have tried dpdk-17.02 and the latest stable dpdk version (16.11.1), but none of them seems to work.
Do you have any clue why this is happening?
Thank you in advance,
Spyros
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared
2017-05-11 21:33 [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared Mastorakis, Spyridon
@ 2017-05-12 8:41 ` Bruce Richardson
2017-05-12 15:25 ` Mastorakis, Spyridon
0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2017-05-12 8:41 UTC (permalink / raw)
To: Mastorakis, Spyridon; +Cc: dev
On Thu, May 11, 2017 at 09:33:32PM +0000, Mastorakis, Spyridon wrote:
> Hi guys,
>
> When I compile the DPDK libraries as shared (by modifying the base_config file) and try to run an application (e.g., l3fwd), I get an error that port 0 is not present on board.
>
> I have cleaned the system several times (unbinded NICs, removed igb_uio and uio modules and hugepage mappings) and have configured everything again, but this does not resolve the issue. I am also not able to add a virtual device (specifically a virtual ring) when I compile as a shared library (no PMD drivers found).
>
> When I compile the DPDK libraries as static though, everything works perfectly fine and I can run the DPDK applications and add virtual rings.
>
> I have tried dpdk-17.02 and the latest stable dpdk version (16.11.1), but none of them seems to work.
>
> Do you have any clue why this is happening?
>
> Thank you in advance,
> Spyros
When compiled as a shared lib, are you passing in the "-d" parameters to
make sure that the PMDs are actually loaded by the app. Unlike the
static version, they are not automatically linked in the shared lib
build.
/Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared
2017-05-12 8:41 ` Bruce Richardson
@ 2017-05-12 15:25 ` Mastorakis, Spyridon
0 siblings, 0 replies; 3+ messages in thread
From: Mastorakis, Spyridon @ 2017-05-12 15:25 UTC (permalink / raw)
To: Richardson, Bruce; +Cc: dev
Hi Bruce,
Thank you for your response.
This seems to have resolved the issue.
Spyros
-----Original Message-----
From: Richardson, Bruce
Sent: Friday, May 12, 2017 1:41 AM
To: Mastorakis, Spyridon <spyridon.mastorakis@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared
On Thu, May 11, 2017 at 09:33:32PM +0000, Mastorakis, Spyridon wrote:
> Hi guys,
>
> When I compile the DPDK libraries as shared (by modifying the base_config file) and try to run an application (e.g., l3fwd), I get an error that port 0 is not present on board.
>
> I have cleaned the system several times (unbinded NICs, removed igb_uio and uio modules and hugepage mappings) and have configured everything again, but this does not resolve the issue. I am also not able to add a virtual device (specifically a virtual ring) when I compile as a shared library (no PMD drivers found).
>
> When I compile the DPDK libraries as static though, everything works perfectly fine and I can run the DPDK applications and add virtual rings.
>
> I have tried dpdk-17.02 and the latest stable dpdk version (16.11.1), but none of them seems to work.
>
> Do you have any clue why this is happening?
>
> Thank you in advance,
> Spyros
When compiled as a shared lib, are you passing in the "-d" parameters to make sure that the PMDs are actually loaded by the app. Unlike the static version, they are not automatically linked in the shared lib build.
/Bruce
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-12 15:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-11 21:33 [dpdk-dev] "Port 0 is not present on the board" when building DPDK libraries as shared Mastorakis, Spyridon
2017-05-12 8:41 ` Bruce Richardson
2017-05-12 15:25 ` Mastorakis, Spyridon
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).