yum install -y sysstat wget tar automake make gcc
wget http://git.dpdk.org/dpdk/snapshot/dpdk-17.11.tar.gz
tar -xf dpdk-17.11.tar.gz
mv dpdk-17.11 dpdk
dpdk/app/test-pmd/txonly.c file.vim dpdk/app/test-pmd/txonly.c
#include "testpmd.h" and enter the following content in the next line.RTE_DEFINE_PER_LCORE(struct udp_hdr, lcore_udp_hdr);RTE_DEFINE_PER_LCORE(uint16_t, test_port);

ol_flags |= PKT_TX_MACSEC; and append the following content to the next lines./* dummy test udp port */memcpy(&RTE_PER_LCORE(lcore_udp_hdr), &pkt_udp_hdr, sizeof(pkt_udp_hdr));
for (nb_pkt = 0; nb_pkt < nb_pkt_per_burst; nb_pkt++) {. Start a new line and add the following:RTE_PER_LCORE(test_port)++;RTE_PER_LCORE(lcore_udp_hdr).src_port = rte_cpu_to_be_16(2222);RTE_PER_LCORE(lcore_udp_hdr).dst_port = rte_cpu_to_be_16(rte_lcore_id() * 2000 + RTE_PER_LCORE(test_port) % 64);

copy_buf_to_pkt(&pkt_udp_hdr, sizeof(pkt_udp_hdr), pkt, with the following content:copy_buf_to_pkt(&RTE_PER_LCORE(lcore_udp_hdr), sizeof(RTE_PER_LCORE(lcore_udp_hdr)), pkt,

dpdk/config/common_base file.vim dpdk/config/common_base
CONFIG_RTE_MAX_MEMSEG=256 to 1024 as shown below:

CONFIG_RTE_MAX_LCORE=128. Change the value to 256 if your CPU core is over 128.

scp -P 22 /root/dpdk/app/test-pmd/txonly.c root@<IP>:/root/dpdk/app/test-pmd/scp -P 22 /root/dpdk/config/common_base root@<IP>:/root/dpdk/config
dpdk/app/test-pmd/txonly.c with the test server IP.vim dpdk/app/test-pmd/txonly.c
#define IP_SRC_ADDR (198U << 24) | (18 << 16) | (0 << 8) | 1;#define IP_DST_ADDR (198U << 24) | (18 << 16) | (0 << 8) | 2;
198, 18, 0, and 1 in the above contents with the server IP, SRC_ADDR with the sender IP, and DST_ADDR with the receiver IP.yum install numactl-devel
apt-get install libnuma-dev
dpdk/ directory to close KNI.sed -i "s/\\(^CONFIG_.*KNI.*\\)=y/\\1=n/g" ./config/*
sed -i "s/\\(^WERROR_FLAGS += -Wundef -Wwrite-strings$\\)/\\1 -Wno-address-of-packed-member/g" ./mk/toolchain/gcc/rte.vars.mk
sed -i "s/fall back/falls through -/g" ./lib/librte_eal/linuxapp/igb_uio/igb_uio.c
make defconfig
make -j
echo 4096 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo 2048 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
ifconfig eth0 0
ifconfig eth0 down
modprobe uio
insmod /root/dpdk/build/kmod/igb_uio.ko
cd /root/dpdk/usertools/
python3 dpdk-devbind.py --bind=igb_uio 00:05.0
00.05.0 in the command with the actual ENI address, which can be obtained using the following command:python3 dpdk-devbind.py -s
cd /root/dpdk/usertools/
python3 dpdk-devbind.py --bind=virtio-pci 00:05.0
ifconfig eth0 up
txpkts parameter to control the packet size, for example, 1430B bandwidth and 64B pps.nb-cores in the bandwidth test to 2. For more information about the command parameters, see estpmd-command-line-options./root/dpdk/build/app/testpmd -l 8-191 -w 0000:00:05.0 -- --burst=128 --nb-cores=32 --txd=512 --rxd=512 --txq=16 --rxq=16 --forward-mode=txonly --txpkts=1430 --stats-period=1
-l 8-191 -w 0000:00:05.0 with the actual value of your test environment./root/dpdk/build/app/testpmd -l 8-191 -w 0000:00:05.0 -- --burst=128 --nb-cores=32 --txd=512 --rxd=512 --txq=16 --rxq=16 --forward-mode=rxonly --stats-period=1
/root/dpdk/build/app/testpmd -l 8-191 -w 0000:00:05.0 -- --burst=128 --nb-cores=32 --txd=512 --rxd=512 --txq=16 --rxq=16 --forward-mode=txonly --txpkts=64 --stats-period=1
/root/dpdk/build/app/testpmd -l 8-191 -w 0000:00:05.0 -- --burst=128 --nb-cores=32 --txd=512 --rxd=512 --txq=16 --rxq=16 --forward-mode=rxonly --stats-period=1

Feedback