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

Thomas Monjalon thomas at monjalon.net
Mon Jul 22 19:31:08 CEST 2019


22/07/2019 19:13, Stephen Hemminger:
> Thomas Monjalon <thomas at monjalon.net> wrote:
> > Are the constructors run on dlopen of the bus driver?
> 
> Yes, constructors are run on dlopen.
> But application should not have to ask DPDK to dlopen the bus devices.
> 
> The core principle is that dynamic build of DPDK should act the same as old
> statically linked DPDK. Otherwise, the user experience is even worse, and all
> the example documentation is wrong.

OK, this is where I wanted to bring the discussion.
You are arguing against a design which is in DPDK from some early days.
So this is an interesting discussion to have.
Do we want to change the "plugin model" we have?
Or do we want to simply drop this model (dlopen calls)
and replace it with strong dynamic linking?




More information about the dev mailing list