[V3,10/10] tests/tx_preparation: update dts code for dpdk csum change
Checks
Commit Message
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
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>
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
@@ -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\