X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fperformance%2Fperformance_vars.robot;h=4a6d3853639cd446db629eeca44ba01718a437a7;hb=293a88b56179094f655178b838b84844a672390d;hp=130237ed82238edad464bc22f51b9777bb598791;hpb=023fa41e51c966a1956bda6b915ffd894ff10e84;p=csit.git 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}