aboutsummaryrefslogtreecommitdiff
path: root/test/performance
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2015-08-06 15:17:15 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-08-11 19:06:23 +0300
commit9b7aca9100fa27cddc4385931cd82a76e2bad0f7 (patch)
tree0101ff256c941fb79dbaa3c59517f52198a28b04 /test/performance
parent4450e0a0e9f6ac7f63e6b30b94f456386e07011b (diff)
test: kill odp_generator
Usually odp_generator exists when veth is destroyed, but not always. Because cpu load impacts on other performance tests we have to be sure that odp_generator is not running in background. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Diffstat (limited to 'test/performance')
-rwxr-xr-xtest/performance/odp_l2fwd_run3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/performance/odp_l2fwd_run b/test/performance/odp_l2fwd_run
index e89bec8a5..c20a3e1f3 100755
--- a/test/performance/odp_l2fwd_run
+++ b/test/performance/odp_l2fwd_run
@@ -59,10 +59,13 @@ run_l2fwd()
(odp_generator${EXEEXT} -I $IF0 \
--srcip 192.168.0.1 --dstip 192.168.0.2 -m u 2>&1 > /dev/null) \
2>&1 > /dev/null &
+ GEN_PID=$!
echo "Run odp_l2fwd -i $IF1,$IF2 -m 0 -t 30 -c 2"
odp_l2fwd${EXEEXT} -i $IF1,$IF2 -m 0 -t 30 -c 2
+ kill ${GEN_PID}
+
cleanup_pktio_env
if [ $? -ne 0 ]; then
echo "cleanup_pktio_env error $?"