[dts] [PATCH V1]tests/ipgre stop port before set csum

han,yingya yingyax.han at intel.com
Sun Feb 11 03:53:31 CET 2018


Need to stop port before configure CSUM offloading.
Refer to dpdk commit: 597f9fafe
Signed-off-by: han,yingya <yingyax.han at intel.com>
---
 tests/TestSuite_ipgre.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py
index a770b8b..2dccb9c 100644
--- a/tests/TestSuite_ipgre.py
+++ b/tests/TestSuite_ipgre.py
@@ -311,12 +311,15 @@ class TestIpgre(TestCase):
         self.dut.send_expect(testpmd_cmd, "testpmd>", 20)
         self.dut.send_expect("set verbose 1", "testpmd>")
         self.dut.send_expect("set fwd csum", "testpmd>")
+        self.dut.send_expect("stop", "testpmd>")
+        self.dut.send_expect("port stop all", "testpmd>")
         self.dut.send_expect("csum set ip hw 0", "testpmd>")
         self.dut.send_expect("csum set udp hw 0", "testpmd>")
         self.dut.send_expect("csum set sctp hw 0", "testpmd>")
         self.dut.send_expect("csum set outer-ip hw 0", "testpmd>")
         self.dut.send_expect("csum set tcp hw 0", "testpmd>")
         self.dut.send_expect("csum parse_tunnel on 0", "testpmd>")
+        self.dut.send_expect("port start all", "testpmd>")
         self.dut.send_expect("start", "testpmd>")
 
         # Send packet with wrong outer IP checksum and check forwarded packet IP checksum is correct
-- 
1.9.3



More information about the dts mailing list