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

Tu, Lijuan lijuan.tu at intel.com
Wed Aug 7 05:23:07 CEST 2019


Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of
> pvukkisala at marvell.com
> Sent: Monday, July 15, 2019 2:43 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 b055e5e..906fff8 100644
> --- a/tests/TestSuite_dynamic_queue.py
> +++ b/tests/TestSuite_dynamic_queue.py
> @@ -152,9 +152,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
>                  if qringsize == 512:
> --
> 1.7.9.5



More information about the dts mailing list