6 DPDK_VERSION=dpdk-17.05
7 ROOTDIR=/tmp/openvpp-testing
11 # Setting command line arguments
17 # Try to kill the testpmd
19 if [ $? -eq "0" ]; then
23 for attempt in {1..5}; do
24 echo "Checking if testpmd is still alive, attempt nr ${attempt}"
26 if [ $? -eq "1" ]; then
27 echo "testpmd is dead"
31 echo "testpmd is still alive, waiting 1 second"
34 if [ "$success" = false ]; then
35 echo "The command sudo pkill testpmd failed"
41 echo "testpmd is not running"
44 # Try to kill the l3fwd
46 if [ $? -eq "0" ]; then
50 for attempt in {1..5}; do
51 echo "Checking if l3fwd is still alive, attempt nr ${attempt}"
53 if [ $? -eq "1" ]; then
58 echo "l3fwd is still alive, waiting 1 second"
61 if [ "$success" = false ]; then
62 echo "The command sudo pkill l3fwd failed"
68 echo "l3fwd is not running"
72 sudo rm -f /dev/hugepages/*
76 cd ${ROOTDIR}/${DPDK_VERSION}/
78 if [ "$jumbo_frames" = "yes" ]; then
79 sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd \
80 -l ${cpu_corelist} -n 4 -- \
84 --nb-cores=${nb_cores} \
89 --txq=$((${nb_cores} + 1)) \
93 --disable-link-check \
96 sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd \
97 -l ${cpu_corelist} -n 4 -- \
101 --nb-cores=${nb_cores} \
103 --rxq=${queue_nums} \
104 --txq=$((${nb_cores} + 1)) \
108 --disable-link-check \
113 less -r ${TESTPMDLOG}