diff options
author | Fran�ois-R�gis Menguy <francoisregis.menguy@orange.com> | 2020-11-16 07:00:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2020-11-16 07:00:28 +0000 |
commit | f684939fed81471c1381fa4fab6e1b6ea37093da (patch) | |
tree | 2e9764b22ec2e9e5a3bdbffb75fe8d69ef7d5bf2 /nfvbench/traffic_gen/trex_gen.py | |
parent | 78f547514e54a9332b919734aed7c8ca1390cb48 (diff) | |
parent | bd0cf4ce9c30c8aae9b7a96cf9c8ea073cd9a548 (diff) |
Merge "NFVBENCH-192: Complete/fix hdrh related processings to consider all cases (multiple service chains, distribution n/a with intel VFs)"
Diffstat (limited to 'nfvbench/traffic_gen/trex_gen.py')
-rw-r--r-- | nfvbench/traffic_gen/trex_gen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nfvbench/traffic_gen/trex_gen.py b/nfvbench/traffic_gen/trex_gen.py index 21e79ae..d5625eb 100644 --- a/nfvbench/traffic_gen/trex_gen.py +++ b/nfvbench/traffic_gen/trex_gen.py @@ -168,6 +168,8 @@ class TRex(AbstractTrafficGenerator): result["latency"] = in_stats["latency"] # Merge HDRHistogram to have an overall value for all chains and ports + # (provided that the histogram exists in the stats returned by T-Rex) + # Of course, empty histograms will produce an empty (invalid) histogram. try: hdrh_list = [] if ifstats: @@ -186,7 +188,7 @@ class TRex(AbstractTrafficGenerator): x.add(y) return x decoded_hdrh = reduce(add_hdrh, hdrh_list) - result["hdrh"] = HdrHistogram.encode(decoded_hdrh).decode('utf-8') + result["overall_hdrh"] = HdrHistogram.encode(decoded_hdrh).decode('utf-8') except KeyError: pass |