From 52eacb37b9e6d11174c23bd053f7ad42b1581dd3 Mon Sep 17 00:00:00 2001 From: Martin Klozik Date: Thu, 15 Oct 2015 01:28:55 +0100 Subject: Simple performance Test for the PVP and PVVP Two sample contionous stream testcaes were introduced for PVP and PVVP scenarios. Required frame rate percentage can be specified either by tetcase configuration option "iLoad" or by command line option "iload". Command line option take precendece to testcase option. By default 100% linerate is used if not specified otherwise. Change-Id: I95f7ae6081377a4c99ce70fc7504b6b542f9260b JIRA: VSPERF-95 Signed-off-by: Martin Klozik Reviewed-by: Maryam Tahhan Reviewed-by: Gene Snider Reviewed-by: Al Morton --- tools/pkt_gen/dummy/dummy.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools/pkt_gen/dummy/dummy.py') diff --git a/tools/pkt_gen/dummy/dummy.py b/tools/pkt_gen/dummy/dummy.py index f9ad1c8c..bf5a8f3c 100755 --- a/tools/pkt_gen/dummy/dummy.py +++ b/tools/pkt_gen/dummy/dummy.py @@ -104,7 +104,7 @@ class Dummy(trafficgen.ITrafficGenerator): """ pass - def send_burst_traffic(self, traffic=None, numpkts=100, time=20, framerate=100): + def send_burst_traffic(self, traffic=None, numpkts=100, time=20): """ Send a burst of traffic. """ @@ -133,8 +133,7 @@ class Dummy(trafficgen.ITrafficGenerator): return trafficgen.BurstResult(*results) - def send_cont_traffic(self, traffic=None, time=20, framerate=0, - multistream=False): + def send_cont_traffic(self, traffic=None, time=20, multistream=False): """ Send a continuous flow of traffic. """ @@ -146,7 +145,7 @@ class Dummy(trafficgen.ITrafficGenerator): results = get_user_traffic( 'continuous', - '%dmS, %dmpps, multistream %s' % (time, framerate, + '%dmS, %dmpps, multistream %s' % (time, traffic['frame_rate'], multistream), traffic_, ('frames tx', 'frames rx', 'min latency', 'max latency', 'avg latency')) -- cgit 1.2.3-korg