diff options
author | Jan Gelety <jgelety@cisco.com> | 2020-12-03 16:22:41 +0100 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2021-01-14 09:44:31 +0000 |
commit | 6962831a1f1905e50a3d663c0cf3ce8c2873ecc9 (patch) | |
tree | 12537d3e584dc8c2d76fb75748ac89e1da3f720a /resources/libraries/robot/performance/performance_vars.robot | |
parent | ef5c30213bb28824a55f4ebbcade6410ee8d2461 (diff) |
perf: GENEVE tunnel test, l3 mode
Jira: CSIT-1768
Change-Id: I888ae1a5754fa07297d4cdf65c2be0e3e49d89a5
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/robot/performance/performance_vars.robot')
-rw-r--r-- | resources/libraries/robot/performance/performance_vars.robot | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/libraries/robot/performance/performance_vars.robot b/resources/libraries/robot/performance/performance_vars.robot index 130237ed82..4a6d385363 100644 --- a/resources/libraries/robot/performance/performance_vars.robot +++ b/resources/libraries/robot/performance/performance_vars.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -450,6 +450,8 @@ | | ${bps_limit} = | Get From Dictionary | | ... | ${NIC_NAME_TO_BPS_LIMIT} | ${nic_name} | | Set Numeric Frame Sizes +| | # We need to add 20B (Ethernet preamble and inter-frame gap) +| | # to avg_frame_size | | ${rate} = | Evaluate | ${bps_limit} / ((${avg_frame_size} + 20.0) * 8) | | ${max_rate} = | Set Variable If | ${rate} > ${pps_limit} | | ... | ${pps_limit} | ${rate} |