aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-11-22 08:18:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-22 08:18:38 +0000
commite1a3083e346bb53fa533e5c7ad3b7c14c3c6f0b9 (patch)
tree8613b9315036290755cf8766f20b3d84421f7b3a /tools/pkt_gen
parent6583defcc0c5610f296c33446d5521d9030fc2b8 (diff)
parentd571e3e634115a7218b50106e14712a8b4e0c2af (diff)
Merge "trex_stat_packet_counts: Add packet counts to trex reporting"
Diffstat (limited to 'tools/pkt_gen')
-rw-r--r--tools/pkt_gen/trex/trex.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/pkt_gen/trex/trex.py b/tools/pkt_gen/trex/trex.py
index 70864a53..acdaf287 100644
--- a/tools/pkt_gen/trex/trex.py
+++ b/tools/pkt_gen/trex/trex.py
@@ -273,6 +273,10 @@ class Trex(ITrafficGenerator):
"""Calculate results from Trex statistic
"""
result = OrderedDict()
+ result[ResultsConstants.TX_FRAMES] = (
+ stats["total"]["opackets"])
+ result[ResultsConstants.RX_FRAMES] = (
+ stats["total"]["ipackets"])
result[ResultsConstants.TX_RATE_FPS] = (
'{:.3f}'.format(
float(stats["total"]["tx_pps"])))