[PATCH] rust: support DPDK API
Stephen Hemminger
stephen at networkplumber.org
Mon Mar 10 17:18:44 CET 2025
On Thu, 6 Mar 2025 15:37:13 +0200
Gregory Etelson <getelson at nvidia.com> wrote:
> The patch converts include files with DPDK API to RUST and binds new
> RUST API files info dpdklib package.
>
> The RUST dpdklib files and DPDK libraries build from C sources
> allow creation of DPDK application in RUST.
>
> RUST DPDK application must specify the `dpdklib` package as
> dependency in Cargo.toml file.
>
> RUST `dpdklib` package is installed into
> MESON_INSTALL_DESTDIR_PREFIX/rust directory.
>
> Software requirements:
> - clang
> - RUST installation
> - bindgen-cli crate
>
> RUST dpdklib installation instructions:
> 1. Configure DPDK with `-Deanble_rust=true`
> 2. Build and install DPDK. The installation procedure will create
> MESON_INSTALL_DESTDIR_PREFIX/rust directory.
> 3. Update PKG_CONFIG_PATH to point to DPDK installation.
>
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> ---
Re-implementing test-pmd, l3fwd, etc in Rust is OK but not huge leap.
The real benefit would the ability to support PMD's built in Rust.
That would be much more invasive
More information about the dev
mailing list