[dts] [PATCH V1]framework/tester: fix random packet with user define ip exceeded list range

Han, YingyaX yingyax.han at intel.com
Thu Apr 23 03:26:15 CEST 2020


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

BRs,
Yingya

-----Original Message-----
From: dts <dts-bounces at dpdk.org> On Behalf Of Xiao Qimai
Sent: Wednesday, April 22, 2020 7:02 PM
To: dts at dpdk.org
Cc: Xiao, QimaiX <qimaix.xiao at 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 at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestDistributor.log
Type: application/octet-stream
Size: 104560 bytes
Desc: TestDistributor.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200423/42bd6851/attachment.obj>


More information about the dts mailing list