[V1,1/1] l3fwd: change rfc2544 pass/fail check
Commit Message
change rfc2544 check condition
check the case pass : wave = 22.996*0.01 ; config - wave =<actual line rate<=config + wave.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
tests/l3fwd_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> change rfc2544 check condition
> check the case pass : wave = 22.996*0.01 ; config - wave =<actual line
> rate<=config + wave.
>
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
> ---
> tests/l3fwd_base.py | 2 +-
Applied
@@ -885,7 +885,7 @@ class L3fwdBase(object):
str(rx_pkts),
])
# check data with expected values
- gap = 100 * (zero_loss_rate - expected_rate) / expected_rate
+ gap = 100 * (actual_rate_percent - expected_rate) / expected_rate
status = 'pass' \
if abs(gap) < bias \
else 'failed'