diff options
Diffstat (limited to 'tools/pkt_gen/trex')
-rw-r--r-- | tools/pkt_gen/trex/trex.py | 4 |
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"]))) |