f"/cleanup_dpdk.sh {if1_driver} {pci_address1} {if2_driver} " \
f"{pci_address2}"
- ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600)
+ ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=1200)
if ret_code != 0:
raise RuntimeError(
f"Failed to cleanup the dpdk at node {dut_node[u'host']}"
f"/run_l2fwd.sh {cpu_cores} {nb_cores} {queue_nums} {jumbo} " \
f"{arch}"
- ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600)
+ ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=1800)
if ret_code != 0:
raise RuntimeError(
f"Failed to execute l2fwd test at node {dut_node['host']}"
f"\"{port_config.rstrip(u',')}\" " \
f"{adj_mac0} {adj_mac1} {u'yes' if jumbo_frames else u'no'}"
- ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=600)
+ ret_code, _, _ = ssh.exec_command_sudo(cmd, timeout=1800)
if ret_code != 0:
raise Exception(
f"Failed to execute l3fwd test at node {dut_node[u'host']}"
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
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}
success=false
sudo pkill testpmd
echo "RC = ${?}"
- for attempt in {1..30}; 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..30}; do
+ for attempt in {1..60}; do
echo "Checking if l3fwd is still alive, attempt nr ${attempt}"
sudo pgrep l3fwd
if [ ${?} -eq "1" ]; then
--auto-start"
fi
-for attempt in {1..30}; do
+for attempt in {1..60}; do
echo "Checking if testpmd is alive, attempt nr ${attempt}"
fgrep "Port 1: link state change event" "${TESTPMDLOG}"
if [ "${?}" -eq "0" ]; then
success=false
sudo kill -15 "${l3fwd_pid}"
echo "RC = ${?}"
- for attempt in {1..30}; do
+ for attempt in {1..60}; do
echo "Checking if l3fwd is still alive, attempt nr ${attempt}"
l3fwd_pid=`get_l3fwd_pid`
if [ -z "${l3fwd_pid}" ]; then
success=false
sudo pkill testpmd
echo "RC = ${?}"
- for attempt in {1..30}; do
+ for attempt in {1..60}; do
echo "Checking if testpmd is still alive, attempt nr ${attempt}"
sudo pgrep testpmd
if [ ${?} -eq "1" ]; then
--eth-dest=0,${adj_mac0} --eth-dest=1,${adj_mac1} --parse-ptype"
fi
-for attempt in {1..30}; do
+for attempt in {1..60}; do
echo "Checking if l3fwd is alive, attempt nr ${attempt}"
fgrep "L3FWD: entering main loop on lcore" "${L3FWDLOG}"
if [ "${?}" -eq "0" ]; then