Skip to content

HarkuLi/dpdk-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DPDK Docker

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 Example

Build DPDK v23.11.3 for Ubuntu 22.04 (Jammy):

make image DPDK_VER=23.11.3 UBUNTU_VER=jammy

Usage Example

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

About

DPDK Dockerfiles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published