set -x
# Setting variables
-DPDK_VERSION=dpdk-17.11
+DPDK_DIR=dpdk
ROOTDIR=/tmp/openvpp-testing
TESTPMDLOG=screenlog.0
PWDDIR=$(pwd)
success=false
sudo pkill testpmd
echo "RC = $?"
- for attempt in {1..5}; do
+ for attempt in {1..60}; do
echo "Checking if testpmd is still alive, attempt nr ${attempt}"
sudo pgrep testpmd
if [ $? -eq "1" ]; then
success=false
sudo pkill l3fwd
echo "RC = $?"
- for attempt in {1..5}; do
+ for attempt in {1..60}; do
echo "Checking if l3fwd is still alive, attempt nr ${attempt}"
sudo pgrep l3fwd
if [ $? -eq "1" ]; then
sudo rm -f /dev/hugepages/*
# Unbind interfaces
-cd ${ROOTDIR}/${DPDK_VERSION}/
+cd ${ROOTDIR}/${DPDK_DIR}/
sudo ./usertools/dpdk-devbind.py -b ${port1_driver} ${port1_pci} || \
{ echo "Unbind ${port1_pci} failed"; exit 1; }
sudo ./usertools/dpdk-devbind.py -b ${port2_driver} ${port2_pci} || \
if1_name=`./usertools/dpdk-devbind.py --s | grep "${port1_pci}" | sed -n 's/.*if=\(\S\)/\1/p' | awk -F' ' '{print $1}'`
if2_name=`./usertools/dpdk-devbind.py --s | grep "${port2_pci}" | sed -n 's/.*if=\(\S\)/\1/p' | awk -F' ' '{print $1}'`
-# Remove igb_uio driver
-rmmod igb_uio || \
- { echo "Removing igb_uio failed"; exit 1; }
-
cd ${PWDDIR}