Migrate DPDK 18.05.1 -> DPDK 24.11.1 LTS

Bruce Richardson bruce.richardson at intel.com
Mon Mar 31 11:08:24 CEST 2025


On Fri, Mar 28, 2025 at 07:18:18PM +0530, Eldho Paul Mathew wrote:
>    Hi,
>    In the 24.11.1 build, I have specific questions
>    1) I need the DPDK output in static lib format. How can I switch off
>    the shared lib build?

Hi,

Both static and shared libraries are built, you do not need to disable
shared libraries in order to use the static libs. To get the appropriate
linker flags you can use the pkgconfig .pc files output from the DPDK
build, or installed when you do a "ninja install". For static linkage:

"pkg-config --libs --static libdpdk"

For a not-installed build, you can use the same command, just set
PKG_CONFIG_PATH to "<builddir>/meson-private" so the .pc files can be
found.

>    2) I need to build librte_kni. a - Is this module deprecated in DPDK
>    24.11.1

yes. Recommend to use an in-kernel alternative, such as TAP or
virtio-vhost.

>    3) How can I enable librte_pmd_* modules? In the driver/net folder,
>    many pmd are available, but none of them are built in the default ninja
>    build.?
>    How to enable this?

All buildable drivers are built by default. You will find them in the
<builddir>/drivers folder. NOTE: the names may have changed in some cases,
e.g. network drivers are now named with "librte_net_*" rather than
"librte_pmd_*", since all drivers in DPDK are of "pmd" type.

>    I used the build steps listed below
>    cd dpdk
>     meson build
>     ninja -C build
>    Will you please help?

/Bruce


More information about the dev mailing list