6 DPDK_VERSION=dpdk-17.02
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"
45 sudo rm -f /dev/hugepages/*
49 cd ${ROOTDIR}/${DPDK_VERSION}/
51 if [ "$jumbo_frames" = "yes" ]; then
52 sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd -l ${cpu_corelist} \
53 -n 4 -- --numa --nb-ports=2 --portmask=0x3 --nb-cores=${nb_cores} \
54 --max-pkt-len=9000 --txqflags=0 --forward-mode=io --rxq=${queue_nums} \
55 --txq=${queue_nums} --auto-start"
59 sudo sh -c "screen -dmSL DPDK-test ./x86_64-native-linuxapp-gcc/app/testpmd -l ${cpu_corelist} \
60 -n 4 -- --numa --nb-ports=2 --portmask=0x3 --nb-cores=${nb_cores} \
61 --forward-mode=io --rxq=${queue_nums} --txq=${queue_nums} --auto-start"