### Extract DPDK Sources Source: https://core.dpdk.org/doc/quick-start Extracts the DPDK source code archive. This is the first step to begin the DPDK setup process. ```bash tar xf dpdk.tar.gz cd dpdk ``` -------------------------------- ### Build DPDK Libraries and Applications Source: https://core.dpdk.org/doc/quick-start Builds the DPDK libraries, drivers, and test applications using the meson build system. Optionally, includes examples by adding '-Dexamples=all'. ```bash meson build ninja -C build ``` ```bash meson -Dexamples=all build ninja -C build ``` -------------------------------- ### Reserve Huge Pages Memory Source: https://core.dpdk.org/doc/quick-start Configures and mounts huge pages, which are essential for DPDK's memory management. This involves creating a directory, mounting hugetlbfs, and setting the number of huge pages. ```bash mkdir -p /dev/hugepages mountpoint -q /dev/hugepages || mount -t hugetlbfs nodev /dev/hugepages echo 64 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages ``` -------------------------------- ### Run DPDK pcap PMD Forwarding Test Source: https://core.dpdk.org/doc/quick-start Executes a DPDK forwarding test using the poll-mode driver (PMD) with pcap. This test requires a cable between ports and demonstrates basic packet forwarding statistics. ```bash build/app/dpdk-testpmd -c7 --vdev=net_pcap0,iface=eth0 --vdev=net_pcap1,iface=eth1 \ -i --nb-cores=2 --nb-ports=2 --total-num-mbufs=2048 testpmd> show port stats all ######################## NIC statistics for port 0 ######################## RX-packets: 0 RX-errors: 0 RX-bytes: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 ############################################################################ ######################## NIC statistics for port 1 ######################## RX-packets: 0 RX-errors: 0 RX-bytes: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 ############################################################################ testpmd> start tx_first testpmd> stop ---------------------- Forward statistics for port 0 ---------------------- RX-packets: 2377688 RX-dropped: 0 RX-total: 2377688 TX-packets: 2007009 TX-dropped: 0 TX-total: 2007009 ---------------------------------------------------------------------------- ---------------------- Forward statistics for port 1 ---------------------- RX-packets: 2006977 RX-dropped: 0 RX-total: 2006977 TX-packets: 2377720 TX-dropped: 0 TX-total: 2377720 ---------------------------------------------------------------------------- +++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++ RX-packets: 4384665 RX-dropped: 0 RX-total: 4384665 TX-packets: 4384729 TX-dropped: 0 TX-total: 4384729 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.