[dpdk-dev] [PATCH] eal: add support for shared object drivers

Olivier MATZ olivier.matz at 6wind.com
Wed Jun 12 16:54:31 CEST 2013


Hi Antti,

>  > For instance, testpmd -d librte_pmd_xxx.so can be used to enable xxx
> driver
>  > support on testpmd without any recompilation of testpmd.
>
> What's the use case?

Load any other pmd driver dynamically (ex: mellanox driver)

> Unless I'm missing something, testpmd still needs
> an explicit rte_pmd_foo_init() call. It's of course not difficult to
> sprinkle some __attribute__((constructor))'s into the pmd's

Yes, you need to do it in the pmd's constructor.

Olivier


More information about the dev mailing list