[dpdk-dev] [PATCH] pci: fix missing pci bus with shared library build

Stephen Hemminger stephen at networkplumber.org
Fri Jul 19 20:11:28 CEST 2019


On Tue, 16 Jul 2019 09:46:04 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:

> I don't think the position of these is going to be the cause here, the more
> likely cause is that the pci bus driver - and all other drivers - are not
> linked into apps for shared library builds. You always need to pass "-d"
> parameter to load drivers at init time (or have them installed in the
> correct driver path). For example, for me with a shared library build the
> following gives a no ports error:
> 
> 	sudo ./build/l2fwd -c F00000 -- -p 3
> 
> while this succeeds and runs fine
> 
> 	sudo ./build/l2fwd -c F00000 -d $RTE_SDK/$RTE_TARGET/lib/librte_pmd_i40e.so -- -p 3


Application should never have to use -d to force driver load!
The purpose of all the pmdinfo, and probing logic is to not do this.


More information about the dev mailing list