| Application | Version |
|---|---|
| cmake | >=3.16 |
| meson | 1.3.1 |
| DPDK | 22.11 |
- libzstd-dev
- libpcap-dev
- Run
setup.shto install dependencies locally.- Note: you only need to run this once to install the dependencies.
- Build with meson by running
build.sh. - Source the paths file:
source paths.sh. - Run
Debug/bin/pktgenorRelease/bin/pktgen.
Like every DPDK application, one must go through the EAL arguments first, and only then consider the application specific arguments, like such:
$ sudo ./Debug/bin/pktgen $EAL_ARGS -- $PKTGEN_ARGS
To bring up the help menu from pktgen specifically, one can use a testing EAL configuration:
$ sudo ./Debug/bin/pktgen --no-huge --no-shconf --vdev "net_tap0,iface=test_rx" --vdev "net_tap1,iface=test_tx" -- --help
Example pktgen configuration (for testing purposes):
$ sudo ./Debug/bin/pktgen -m 8192 --no-huge --no-shconf --vdev "net_tap0,iface=test_rx" --vdev "net_tap1,iface=test_tx" -- --tx 1 --rx 0 --tx-cores 4 --total-flows 16 --dist zipf --zipf-param 1.26