aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pkt_gen/trex
diff options
context:
space:
mode:
authorChristian Trautman <ctrautma@redhat.com>2017-11-20 12:11:15 -0500
committerChristian Trautman <ctrautma@redhat.com>2017-11-20 12:11:15 -0500
commitd571e3e634115a7218b50106e14712a8b4e0c2af (patch)
tree80d366f70bba20345add549ef203999a7ac73889 /tools/pkt_gen/trex
parent4bca2eeb7fabe20112d0b9c5a4c166615124bcd0 (diff)
trex_stat_packet_counts: Add packet counts to trex reporting
Adds packet count totals for transmit and receive to reporting at the end of test execution. JIRA: VSPERF-546 Change-Id: I51027fae109d0ea794c0db03f5781ddb2fcbb941 Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'tools/pkt_gen/trex')
-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"])))