6 DPDK_VERSION=dpdk-17.11
7 ROOTDIR=/tmp/openvpp-testing
11 # Setting command line arguments
18 # dpdk prefers "arm64" to "aarch64" and does not allow arm64 native target
19 if [ $arch == "aarch64" ]; then
26 # Try to kill the testpmd
28 if [ $? -eq "0" ]; then
32 for attempt in {1..5}; do
33 echo "Checking if testpmd is still alive, attempt nr ${attempt}"
35 if [ $? -eq "1" ]; then
36 echo "testpmd is dead"
40 echo "testpmd is still alive, waiting 1 second"
43 if [ "$success" = false ]; then
44 echo "The command sudo pkill testpmd failed"
50 echo "testpmd is not running"
53 # Try to kill the l3fwd
55 if [ $? -eq "0" ]; then
59 for attempt in {1..5}; do
60 echo "Checking if l3fwd is still alive, attempt nr ${attempt}"
62 if [ $? -eq "1" ]; then
67 echo "l3fwd is still alive, waiting 1 second"
70 if [ "$success" = false ]; then
71 echo "The command sudo pkill l3fwd failed"
77 echo "l3fwd is not running"
81 sudo rm -f /dev/hugepages/*
85 cd ${ROOTDIR}/${DPDK_VERSION}/
87 TESTPMD_BIN=./${arch}-${machine}-linuxapp-gcc/app/testpmd
89 if [ "$jumbo_frames" = "yes" ]; then
90 sudo sh -c "screen -dmSL DPDK-test $TESTPMD_BIN \
91 -l ${cpu_corelist} -n 4 -- \
95 --nb-cores=${nb_cores} \
100 --txq=$((${nb_cores} + 1)) \
104 --disable-link-check \
107 sudo sh -c "screen -dmSL DPDK-test $TESTPMD_BIN \
108 -l ${cpu_corelist} -n 4 -- \
112 --nb-cores=${nb_cores} \
114 --rxq=${queue_nums} \
115 --txq=$((${nb_cores} + 1)) \
119 --disable-link-check \
124 less -r ${TESTPMDLOG}