DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] DPDK driver autoloading?
@ 2021-10-13 16:52 Stephen Hemminger
  2021-10-14  8:43 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2021-10-13 16:52 UTC (permalink / raw)
  To: Bruce Richardson, Ferruh Yigit, Burakov, Anatoly; +Cc: dev

The current DPDK PCI code requires that all PMD shared libraries
be loaded before probing.  This a burden for applications that run
on multiple platforms and a total mess for Linux distributions.

A better way would be to have the bus scanning code autoload
drivers as needed. This would work like the Linux kernel
module loading. 

Could existing pmdinfogen mechanism be extended to to do this?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] DPDK driver autoloading?
  2021-10-13 16:52 [dpdk-dev] DPDK driver autoloading? Stephen Hemminger
@ 2021-10-14  8:43 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2021-10-14  8:43 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Ferruh Yigit, Burakov, Anatoly, dev

On Wed, Oct 13, 2021 at 09:52:18AM -0700, Stephen Hemminger wrote:
> The current DPDK PCI code requires that all PMD shared libraries
> be loaded before probing.  This a burden for applications that run
> on multiple platforms and a total mess for Linux distributions.
> 
> A better way would be to have the bus scanning code autoload
> drivers as needed. This would work like the Linux kernel
> module loading. 
> 
> Could existing pmdinfogen mechanism be extended to to do this?

Can you clarify a bit more about what the problem is here? How does EAL
loading the modules first make things a mess for distributions, compared to
loading them on-demand? With both schemes you naturally need to ensure all
needed drivers are present, and can remove any unneeded drivers. The only
difference is that with our current scheme some unneeded drivers which are
present will be loaded at runtime but idle/unused - hardly a massive
impact, I would think. What am I missing here?

/Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-14  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 16:52 [dpdk-dev] DPDK driver autoloading? Stephen Hemminger
2021-10-14  8:43 ` Bruce Richardson

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).