Skip to content

Commit

Permalink
Merge pull request #339 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - Added rss mode in cicd
  • Loading branch information
TrekkieCoder authored Jun 27, 2023
2 parents d74ed9f + 9163c6e commit 63ca01d
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions cicd/tcpsctpperf/validation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,46 @@ sudo pkill netserver
sudo rm -f /dev/null; sudo mknod -m 666 /dev/null c 1 3
echo "*********************************************************************"

echo -e "\n\nRestarting loxilb in different mode"
$dexec llb1 pkill -9 loxilb
$dexec llb1 ip link del llb0
$dexec llb1 bash -c "nohup /root/loxilb-io/loxilb/loxilb --rss-enable >> /dev/null 2>&1 &"
sleep 40
for ((i=1,port=12865;i<=100;i++,port++))
do
$dexec llb1 loxicmd create lb 20.20.20.1 --tcp=$port:$port --endpoints=31.31.31.1:1 >> /dev/null
done

$dexec llb1 loxicmd create lb 20.20.20.1 --tcp=13866:13866 --endpoints=31.31.31.1:1 >> /dev/null
for ((i=1,port=13866;i<=100;i++,port++))
do
$dexec llb1 loxicmd create lb 20.20.20.1 --sctp=$port:$port --endpoints=31.31.31.1:1 >> /dev/null
done

sleep 20

echo -e "\n\nIPERF Test - Threads: $threads Duration: $time"
echo "*********************************************************************"
$hexec l3ep1 iperf -s -p 12865 2>&1 > /dev/null &
$hexec l3ep1 iperf3 -s -p 13866 --logfile iperf3s.log 2>&1> /dev/null &
sleep 2
$hexec l3h1 ./iperf.sh $threads $time
sudo pkill iperf 2>&1>/dev/null
sudo rm iperf3s.log
echo "*********************************************************************"
sleep 2

$hexec l3ep1 ./netserver -4 -p 12865
echo -e "\n\nNETPERF Test - Threads: $threads Duration: $time"
echo "*********************************************************************"
sleep 2
$hexec l3h1 ./netperf.sh $threads $time
sudo pkill netserver

#netserver somehow corrupts /dev/null, so we have to create it again
sudo rm -f /dev/null; sudo mknod -m 666 /dev/null c 1 3
echo "*********************************************************************"



echo SCENARIO-tcpsctpperf [OK]

0 comments on commit 63ca01d

Please sign in to comment.