[dts] [PATCH V1] tests/dynamic_queue: add ringsize condition
Tu, Lijuan
lijuan.tu at intel.com
Wed Jul 10 04:08:46 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Monday, July 8, 2019 9:19 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition
>
> Signed-off-by: lihong <lihongx.ma at intel.com>
> ---
> tests/TestSuite_dynamic_queue.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/tests/TestSuite_dynamic_queue.py
> b/tests/TestSuite_dynamic_queue.py
> index f334a96..b055e5e 100644
> --- a/tests/TestSuite_dynamic_queue.py
> +++ b/tests/TestSuite_dynamic_queue.py
> @@ -104,6 +104,8 @@ class TestDynamicQueue(TestCase):
> pattern = "%s([0-9]+)" % qring_strip
> qringsize = self.element_strip(out, pattern)
> chg_qringsize = qringsize % 1024 + 256
> + if qringsize == 512:
> + chg_qringsize = 256
> self.dut_testpmd.execute_cmd(
> 'port config 0 rxq %d ring_size %d'
> % (queue[i], chg_qringsize)) @@ -155,6 +157,8 @@ class
> TestDynamicQueue(TestCase):
> "Fail to stop txq at runtime")
> if chgflag == 1:
> chg_qringsize = qringsize % 1024 + 256
> + if qringsize == 512:
> + chg_qringsize = 256
> self.dut_testpmd.execute_cmd(
> 'port config 0 txq %d ring_size %d'
> % (queue, chg_qringsize))
> --
> 2.7.4
More information about the dts
mailing list