k13132 / openwrt-dpdk

Data Plane Development Kit (DPDK) integration into OpenWrt
26 stars 12 forks source link
dpdk dpdk-driver kernel-module numa openwrt openwrt-feed openwrt-package

Data Plane Development Kit (DPDK) integration into OpenWrt

This repository contains all necessary packages for the compilation of DPDK on OpenWrt. CPU architectures x86_64 and aarch64 are supported.

Packages are assembled by information from https://doc.dpdk.org/guides/howto/openwrt.html.

Repository packages

OpenWrt 23 and newer has kmod-iommu_v2 and kmod-vfio directly in menuconfig.

Compilation & Installation

Requirements

OpenWrt build configuration

Make a system from sources. Use branches 21.02, 22.03 or 23.05.

Add this repo to OpenWrt feed.conf

echo "src-git dpdk_repo https://github.com/k13132/openwrt-dpdk" >> feeds.conf

Update OpenWrt package feeds

./scripts/feeds update dpdk_repo
./scripts/feeds install -a -p dpdk_repo

Use/select libdpdk, dpdk-tools packages

Compile DPDK packages

make package/dpdk/compile -j$((`nproc`+1))