diff options
author | bmichalo <bmichalo@redhat.com> | 2016-08-09 11:52:36 -0400 |
---|---|---|
committer | bmichalo <bmichalo@redhat.com> | 2016-08-09 12:00:54 -0400 |
commit | 5fd8804c5199161ae0c8b21f55972f1414098f75 (patch) | |
tree | aa2389c7c4d2b99f750e7a978dff110aed795a24 | |
parent | da059df422c839bb5d6393455a43c44e95873c73 (diff) |
pkt_gen: MoonGen should use class object for line rate calc
Instead of hard coding line speed numbers for rate calcuation,
MoonGen should use its class object initialized at start time.
JIRA: VSPERF-368
Change-Id: I68c688f8c244df16d98cfd15efabf491a317256b
Signed-off-by: bmichalo <bmichalo@redhat.com>
-rw-r--r-- | tools/pkt_gen/moongen/moongen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pkt_gen/moongen/moongen.py b/tools/pkt_gen/moongen/moongen.py index 1d2fdee5..0638fcee 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) |