From aeecf9f55f8d78514e61f6766f9cae262f6d5d8c Mon Sep 17 00:00:00 2001 From: Radek Zetik Date: Tue, 22 Sep 2015 05:12:48 +0100 Subject: Remove reported derived performance figures Since vsperf (ixnet trafficgen) started using AggResults.csv to pull out traffic results after bi-dir support was added. Some of the derived results are wrong (derived meaning these are figures vsperf calculates from the info available in the raw ixnet results). JIRA: VSPERF-88 Change-Id: I79d88bfc7718bda675d2ba7e5148053405a94211 Signed-off-by: Radek Zetik Reviewed-by: Billy O Mahony Reviewed-by: Maryam Tahhan --- tools/pkt_gen/ixnet/ixnet.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/pkt_gen/ixnet/ixnet.py b/tools/pkt_gen/ixnet/ixnet.py index 28ee8aaf..866a803e 100755 --- a/tools/pkt_gen/ixnet/ixnet.py +++ b/tools/pkt_gen/ixnet/ixnet.py @@ -350,10 +350,11 @@ class IxNet(trafficgen.ITrafficGenerator): for row in reader: #Replace null entries added by Ixia with 0s. row = [entry if len(entry) > 0 else '0' for entry in row] - # calculate tx fps by (rx fps * (tx % / rx %)) - tx_fps = float(row[5]) * (float(row[4]) / float(row[3])) - # calculate tx mbps by (rx mbps * (tx % / rx %)) - tx_mbps = float(row[6]) * (float(row[4]) / float(row[3])) + + # tx_fps and tx_mps cannot be reliably calculated + # as the DUT may be modifying the frame size + tx_fps = 'Unknown' + tx_mbps = 'Unknown' if bool(results.get(ResultsConstants.THROUGHPUT_RX_FPS)) \ == False: -- cgit 1.2.3-korg