diff mbox series

[V3,10/10] tests/tx_preparation: update dts code for dpdk csum change

Message ID 20220830024740.26250-10-weiyuanx.li@intel.com (mailing list archive)
State Accepted
Headers show
Series [V3,01/10] tests/vf_offload: update dts code for dpdk csum change | expand

Checks

Context Check Description
ci/Intel-dts-suite-test fail Testing issues
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-doc-test fail Testing issues

Commit Message

Weiyuan Li Aug. 30, 2022, 2:47 a.m. UTC
According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify
the script adapt to this chagne.

1. Modify VF case to enable promisc.
2. Modify PF case to send packet dst mac is random.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Jiale Song < songx.jiale@intel.com>

 tests/TestSuite_tx_preparation.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Peng, Yuan Aug. 30, 2022, 3:10 a.m. UTC | #1
Acked-by Peng, Yuan <yuan.peng@intel.com>

-----Original Message-----
From: Weiyuan Li <weiyuanx.li@intel.com> 
Sent: Tuesday, August 30, 2022 10:48 AM
To: dts@dpdk.org
Cc: Li, WeiyuanX <weiyuanx.li@intel.com>; Jiale, SongX <songx.jiale@intel.com>
Subject: [dts][PATCH V3 10/10] tests/tx_preparation: update dts code for dpdk csum change

According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify the script adapt to this chagne.

1. Modify VF case to enable promisc.
2. Modify PF case to send packet dst mac is random.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Jiale Song < songx.jiale@intel.com>
Tu, Lijuan Sept. 2, 2022, 1:44 a.m. UTC | #2
On Tue, 30 Aug 2022 10:47:40 +0800, Weiyuan Li <weiyuanx.li@intel.com> wrote:
> According to dpdk commit 9b4ea7ae77fa(app/testpmd: revert MAC update in checksum forwarding) modify
> the script adapt to this chagne.
> 
> 1. Modify VF case to enable promisc.
> 2. Modify PF case to send packet dst mac is random.
> 
> Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>

Acked-by: Lijuan Tu <lijuan.tu@intel.com>
Series applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_tx_preparation.py b/tests/TestSuite_tx_preparation.py
index 9b70699c..c3e90f72 100644
--- a/tests/TestSuite_tx_preparation.py
+++ b/tests/TestSuite_tx_preparation.py
@@ -73,7 +73,7 @@  class TestTX_preparation(TestCase):
             " --portmask=1 --port-topology=chained --max-pkt-len=%s --tx-offloads=0x8000"
             % Max_mtu,
         )
-        self.dmac = self.dut_testpmd.get_port_mac(0)
+        self.dmac = "00:11:22:33:44:55"
         self.dut_testpmd.execute_cmd("set fwd csum")
         self.dut_testpmd.execute_cmd("set verbose 1")
         # enable ip/udp/tcp hardware checksum
@@ -84,7 +84,7 @@  class TestTX_preparation(TestCase):
 
     def start_tcpdump(self, rxItf):
         # only sniff form dut packet and filter lldp packet
-        param = "ether[12:2]!=0x88cc and ether src %s" % self.dmac
+        param = "ether[12:2]!=0x88cc and ether dst %s -Q in" % self.dmac
         self.tester.send_expect("rm -rf ./getPackageByTcpdump.cap", "#")
         self.tester.send_expect(
             "tcpdump %s -i %s -n -e -vv -w\