Build images that contain built DPDK library for individual Ubuntu versions. An image will be tagged as:
<DPDK version>-<Ubuntu version>
For example, the image for DPDK v23.11.3 that is built on Ubuntu Jammy will
be tagged as 23.11.3-jammy
.
Some pre-built images are available on Docker Hub.
Build DPDK v23.11.3 for Ubuntu 22.04 (Jammy):
make image DPDK_VER=23.11.3 UBUNTU_VER=jammy
Set up huge pages:
docker run -it --rm --privileged \
-v /dev/hugepages:/dev/hugepages \
-v /mnt/huge:/mnt/huge \
harku/dpdk:23.11.3-jammy \
dpdk-hugepages.py -p 1G --setup 4G
Run Testpmd on
the eth0
interface using
AF_XDP PMD:
docker run -it --rm --privileged \
-v /dev/hugepages:/dev/hugepages \
-v /mnt/huge:/mnt/huge \
harku/dpdk:23.11.3-jammy \
dpdk-testpmd --vdev=net_af_xdp0,iface=eth0 -l 0-3 -m 2 -- -i