diff options
author | 2016-06-20 12:56:17 +0300 | |
---|---|---|
committer | 2016-06-20 12:57:02 +0300 | |
commit | 35efdda889977a7b0bf5d1cda213d0e7ffcd4367 (patch) | |
tree | f4b1ff50b1d7e30d637f0aba893610e0fb1b60e4 /scripts/automation/trex_control_plane/stl/examples | |
parent | 0bcd7377e8d476a0eb8f7d7f55f59e0c6df91f28 (diff) |
Add 4 bytes for each packet rx/tx bytes in flow stats, to artificially count ethernet CRC
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/examples')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py b/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py index 86b91728..ac0e212b 100644 --- a/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py +++ b/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py @@ -114,7 +114,7 @@ def rx_iteration (c, tx_port, rx_port, total_pkts, pkt_len, bw): else: print("TX pkts match - {0}".format(tx_pkts)) - if tx_bytes != (total_pkts * pkt_len): + if tx_bytes != (total_pkts * (pkt_len + 4)): # +4 for ethernet CRC print("TX bytes mismatch - got: {0}, expected: {1}".format(tx_bytes, (total_pkts * pkt_len))) pprint.pprint(flow_stats) return False |