test suite reviews and discussions
 help / color / mirror / Atom feed
From: yufengmx <yufengx.mo@intel.com>
To: dts@dpdk.org
Cc: yufengmx <yufengx.mo@intel.com>
Subject: [dts] [PATCH V1 1/1] l3fwd: change rfc2544 pass/fail check
Date: Wed, 19 Aug 2020 10:40:41 +0800	[thread overview]
Message-ID: <20200819024041.43005-2-yufengx.mo@intel.com> (raw)
In-Reply-To: <20200819024041.43005-1-yufengx.mo@intel.com>


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(-)

diff --git a/tests/l3fwd_base.py b/tests/l3fwd_base.py
index a0190a7..1eccc0e 100644
--- a/tests/l3fwd_base.py
+++ b/tests/l3fwd_base.py
@@ -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'
-- 
2.21.0


  reply	other threads:[~2020-08-19  2:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-19  2:40 [dts] [PATCH V1 0/1] " yufengmx
2020-08-19  2:40 ` yufengmx [this message]
2020-08-21  3:40   ` [dts] [PATCH V1 1/1] " Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200819024041.43005-2-yufengx.mo@intel.com \
    --to=yufengx.mo@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).