[dts] [PATCH V1]vm2vm_virtio_pmd: fix pdump eal parameter

Tu, Lijuan lijuan.tu at intel.com
Fri Apr 17 11:04:58 CEST 2020


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of Xiao Qimai
> Sent: Tuesday, April 7, 2020 10:00 AM
> To: dts at dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao at intel.com>
> Subject: [dts] [PATCH V1]vm2vm_virtio_pmd: fix pdump eal parameter
> 
> Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
> ---
>  tests/TestSuite_vm2vm_virtio_pmd.py | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py
> b/tests/TestSuite_vm2vm_virtio_pmd.py
> index 5bc0d01..62929e0 100644
> --- a/tests/TestSuite_vm2vm_virtio_pmd.py
> +++ b/tests/TestSuite_vm2vm_virtio_pmd.py
> @@ -167,10 +167,16 @@ class TestVM2VMVirtioPMD(TestCase):
>          bootup pdump in VM
>          """
>          self.pdump_session = client_dut.new_session(suite="pdump")
> -        command_line = self.target + "/app/dpdk-pdump " + \
> +        if hasattr(client_dut, "vm_name"):
> +            command_line = self.target + "/app/dpdk-pdump " + \
>                      "-v --file-prefix=virtio -- " + \
>                      "--pdump  '%s,queue=*,rx-dev=%s,mbuf-size=8000'"
> -        self.pdump_session.send_expect(command_line % (dump_port,
> self.dump_pcap), 'Port')
> +            self.pdump_session.send_expect(command_line % (dump_port,
> self.dump_pcap), 'Port')
> +        else:
> +            command_line = self.target + "/app/dpdk-pdump " + \
> +                    "-v --file-prefix=virtio_%s -- " + \
> +                    "--pdump  '%s,queue=*,rx-dev=%s,mbuf-size=8000'"
> +            self.pdump_session.send_expect(command_line %
> (self.dut.prefix_subfix, dump_port, self.dump_pcap), 'Port')
> 
>      def start_vms(self, mode=0, mergeable=True):
>          """
> --
> 1.8.3.1



More information about the dts mailing list