[dts] [PATCH V1] tests/rxtx_offload: add -c params when use tcpdump read pcap file

lihong lihongx.ma at intel.com
Thu Jun 6 01:03:27 CEST 2019


The tcpdump capture all the tx packets from testpmd, read the pcap
file will use too much time, and it not need to read all the packet
in the pcap file. Using 1024 packets to verify the tx packets is enough.

Signed-off-by: lihong <lihongx.ma at intel.com>
---
 tests/TestSuite_rxtx_offload.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py
index 53f7cf9..0ae83f4 100644
--- a/tests/TestSuite_rxtx_offload.py
+++ b/tests/TestSuite_rxtx_offload.py
@@ -269,7 +269,7 @@ class TestRxTx_Offload(TestCase):
     def get_tcpdump_package(self):
 
         self.tester.send_expect("killall tcpdump", "#")
-        return self.tester.send_expect("tcpdump -nn -e -v -r ./getPackageByTcpdump.cap", "#", 120)
+        return self.tester.send_expect("tcpdump -nn -e -v -c 1024 -r ./getPackageByTcpdump.cap", "#", 120)
 
     def test_rxoffload_port(self):
         """
-- 
2.7.4



More information about the dts mailing list