summaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/moongen
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2016-08-09 16:38:21 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-09 16:38:21 +0000
commitf5ec5442151cb801ddbde4477a77f51654afe1a5 (patch)
treedeb289a642e6cf796ca3addbfb0a0ed1029f2fc3 /tools/pkt_gen/moongen
parent8fc264914ec05e572543f7d857a7ff4f437ffa9d (diff)
parent5fd8804c5199161ae0c8b21f55972f1414098f75 (diff)
Merge "pkt_gen: MoonGen should use class object for line rate calc"
Diffstat (limited to 'tools/pkt_gen/moongen')
-rw-r--r--tools/pkt_gen/moongen/moongen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pkt_gen/moongen/moongen.py b/tools/pkt_gen/moongen/moongen.py
index 86a39a77..790286d8 100644
--- a/tools/pkt_gen/moongen/moongen.py
+++ b/tools/pkt_gen/moongen/moongen.py
@@ -502,7 +502,7 @@ class Moongen(ITrafficGenerator):
if results_match and parameters_match and num_traffic_streams:
# Assume for now 10G link speed
max_theoretical_fps = (
- num_traffic_streams * (10000000000 / 8) / (frame_size + 20))
+ num_traffic_streams * (self._moongen_line_speed / 8) / (frame_size + 20))
moongen_results[ResultsConstants.THROUGHPUT_RX_FPS] = (
float(results_match.group(6)) * 1000000)