test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range
@ 2020-04-22 11:01 Xiao Qimai
  2020-04-23  1:26 ` Han, YingyaX
  0 siblings, 1 reply; 2+ messages in thread
From: Xiao Qimai @ 2020-04-22 11:01 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

*. compare packets with same index

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 framework/tester.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/tester.py b/framework/tester.py
index 6e92847..f55818e 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -767,10 +767,10 @@ class Tester(Crb):
                     else:
                         prev_id = t_idx
 
-                if compare_f(tx_pkts[txport].pktgen.pkts[t_idx], recv_pkts[idx], "L4") is False:
+                if compare_f(tx_pkts[txport].pktgen.pkts[idx], recv_pkts[idx], "L4") is False:
                     self.logger.warning("Pkt received index %d not match original " \
-                          "index %d" % (idx, t_idx))
-                    self.logger.info("Sent: %s" % strip_f(tx_pkts[txport].pktgen.pkts[t_idx], "L4"))
+                          "index %d" % (idx, idx))
+                    self.logger.info("Sent: %s" % strip_f(tx_pkts[txport].pktgen.pkts[idx], "L4"))
                     self.logger.info("Recv: %s" % strip_f(recv_pkts[idx], "L4"))
                     return False
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range
  2020-04-22 11:01 [dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range Xiao Qimai
@ 2020-04-23  1:26 ` Han, YingyaX
  0 siblings, 0 replies; 2+ messages in thread
From: Han, YingyaX @ 2020-04-23  1:26 UTC (permalink / raw)
  To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX

[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]

Tested-by: Han,YingyaX <yingyax.han@intel.com>

BRs,
Yingya

-----Original Message-----
From: dts <dts-bounces@dpdk.org> On Behalf Of Xiao Qimai
Sent: Wednesday, April 22, 2020 7:02 PM
To: dts@dpdk.org
Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range

*. compare packets with same index

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 framework/tester.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/framework/tester.py b/framework/tester.py index 6e92847..f55818e 100644
--- a/framework/tester.py
+++ b/framework/tester.py
@@ -767,10 +767,10 @@ class Tester(Crb):
                     else:
                         prev_id = t_idx
 
-                if compare_f(tx_pkts[txport].pktgen.pkts[t_idx], recv_pkts[idx], "L4") is False:
+                if compare_f(tx_pkts[txport].pktgen.pkts[idx], recv_pkts[idx], "L4") is False:
                     self.logger.warning("Pkt received index %d not match original " \
-                          "index %d" % (idx, t_idx))
-                    self.logger.info("Sent: %s" % strip_f(tx_pkts[txport].pktgen.pkts[t_idx], "L4"))
+                          "index %d" % (idx, idx))
+                    self.logger.info("Sent: %s" % 
+ strip_f(tx_pkts[txport].pktgen.pkts[idx], "L4"))
                     self.logger.info("Recv: %s" % strip_f(recv_pkts[idx], "L4"))
                     return False
 
--
1.8.3.1


[-- Attachment #2: TestDistributor.log --]
[-- Type: application/octet-stream, Size: 104560 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-23  1:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22 11:01 [dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range Xiao Qimai
2020-04-23  1:26 ` Han, YingyaX

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