[dts] [PATCH] dynamic_queue: Fix Tx queue tests on cavium device

Tu, Lijuan lijuan.tu at intel.com
Wed Jul 10 07:25:15 CEST 2019


Sorry, applied error, could you fix it?

Applying: dynamic_queue: Fix Tx queue tests on cavium device
.git/rebase-apply/patch:20: trailing whitespace.
                # Check Tx stopped queue only transmits qringsize-1 packets
error: patch failed: tests/TestSuite_dynamic_queue.py:150
error: tests/TestSuite_dynamic_queue.py: patch does not apply
Patch failed at 0001 dynamic_queue: Fix Tx queue tests on cavium device

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of
> pvukkisala at marvell.com
> Sent: Thursday, July 4, 2019 9:57 PM
> To: dts at dpdk.org
> Cc: avijay at marvell.com; fmasood at marvell.com; Phanendra Vukkisala
> <pvukkisala at marvell.com>
> Subject: [dts] [PATCH] dynamic_queue: Fix Tx queue tests on cavium device
> 
> From: Phanendra Vukkisala <pvukkisala at marvell.com>
> 
> our pmd completely blocks queuing up the pkts into TXD when queue is in
> stop state
> 
> Signed-off-by: Phanendra Vukkisala <pvukkisala at marvell.com>
> ---
>  tests/TestSuite_dynamic_queue.py |   10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_dynamic_queue.py
> b/tests/TestSuite_dynamic_queue.py
> index f334a96..912e858 100644
> --- a/tests/TestSuite_dynamic_queue.py
> +++ b/tests/TestSuite_dynamic_queue.py
> @@ -150,9 +150,13 @@ class TestDynamicQueue(TestCase):
>              out = self.dut_testpmd.execute_cmd('stop')
>              tx_num = qringsize - 1
> 
> -            # Check Tx stopped queue only transmits qringsize-1 packets
> -            self.verify("TX-packets: %d" % tx_num in out,
> -                        "Fail to stop txq at runtime")
> +            if self.nic == "cavium_a063":
> +                self.verify("TX-packets: 0" in out,
> +                            "Fail to stop txq at runtime")
> +            else:
> +                # Check Tx stopped queue only transmits qringsize-1 packets
> +                self.verify("TX-packets: %d" % tx_num in out,
> +                            "Fail to stop txq at runtime")
>              if chgflag == 1:
>                  chg_qringsize = qringsize % 1024 + 256
>                  self.dut_testpmd.execute_cmd(
> --
> 1.7.9.5



More information about the dts mailing list