summaryrefslogtreecommitdiffstats
path: root/core/traffic_controller_rfc2544.py
diff options
context:
space:
mode:
authorDino Simeon Madarang <dino.simeonx.madarang@intel.com>2015-06-19 19:45:08 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2015-07-07 09:50:45 +0000
commit8859f3b1b81bf2a980a319551300b127be9a0f45 (patch)
tree4ddef787ce19fcdf4d01295aeb042d07b984b07f /core/traffic_controller_rfc2544.py
parentecc42f3b69e01289415f43ebf88b1f5dfde5e14c (diff)
Port RFC2544.BackToBackFrames test to vsperf
Add RFC2544.BackToBackFrames test and fix pylint errors. Remove irrelevant values of back to back test results. JIRA: VSPERF-46 Change-Id: I7a0dfd9494b509c3be7bffc0678228838d3059a1 Signed-off-by: Dino Simeon Madarang <dino.simeonx.madarang@intel.com> Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com> Reviewed-by: Meghan Halton <meghan.halton@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Radek Zetik <radekx.zetik@intel.com> Reviewed-by: Martin Klozik<martinx.klozik@intel.com> Reviewed-by: Eugene Snider <Eugene.Snider@huawei.com> Reviewed-by: Gurpreet Singh <gurpreet.singh@spirent.com> Reviewed-by: Tv Rao <tv.rao@freescale.com>
Diffstat (limited to 'core/traffic_controller_rfc2544.py')
-rw-r--r--core/traffic_controller_rfc2544.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/core/traffic_controller_rfc2544.py b/core/traffic_controller_rfc2544.py
index 003307bf..bcea9568 100644
--- a/core/traffic_controller_rfc2544.py
+++ b/core/traffic_controller_rfc2544.py
@@ -82,10 +82,15 @@ class TrafficControllerRFC2544(ITrafficController, IResults):
for packet_size in self._packet_sizes:
traffic['l2'] = {'framesize': packet_size}
- result = self._traffic_gen_class.send_rfc2544_throughput(
- traffic,
- trials=int(self._trials),
- duration=int(get_test_param('rfc2544_duration', 20)))
+ if traffic['traffic_type'] == 'back2back':
+ result = self._traffic_gen_class.send_rfc2544_back2back(
+ traffic, trials=int(self._trials),
+ duration=int(get_test_param('rfc2544_duration', 20)))
+ else:
+ result = self._traffic_gen_class.send_rfc2544_throughput(
+ traffic, trials=int(self._trials),
+ duration=int(get_test_param('rfc2544_duration', 20)))
+
result = TrafficControllerRFC2544._append_results(result,
packet_size)
self._results.append(result)