diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-09-15 17:48:57 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-15 17:48:57 +0000 |
commit | f2cf028bcb55b868f62fd25c692bd32dd92c27ef (patch) | |
tree | 80d50dad0fe116203c7673c05061ad2fed76b1db /tools/pkt_gen | |
parent | 980cd2834cb2c23c13cf40b6f58c1de0b28b70b0 (diff) | |
parent | 23fd7d08df71d2c4320fc728f5adca8d28782e2e (diff) |
Merge "trex: Enforce 10 iterations for RFC2544 tput"
Diffstat (limited to 'tools/pkt_gen')
-rw-r--r-- | tools/pkt_gen/trex/trex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pkt_gen/trex/trex.py b/tools/pkt_gen/trex/trex.py index ae262306..e8ed42f1 100644 --- a/tools/pkt_gen/trex/trex.py +++ b/tools/pkt_gen/trex/trex.py @@ -284,7 +284,9 @@ class Trex(ITrafficGenerator): right = traffic['frame_rate'] center = traffic['frame_rate'] - while num_test <= tests: + # execute 10 iterations to find out best tput with 0% packet loss + # unless 0% packet loss is detected for initial frame_rate + while num_test <= 10: test_lossrate = ((stats["total"]["opackets"] - stats["total"] ["ipackets"]) * 100) / stats["total"]["opackets"] self._logger.debug("Iteration: %s, frame rate: %s, throughput_rx_fps: %s, frame_loss_percent: %s", |