From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 49B35A00E6 for ; Mon, 8 Jul 2019 10:57:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0291C3195; Mon, 8 Jul 2019 10:57:55 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 935832F42 for ; Mon, 8 Jul 2019 10:57:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jul 2019 01:41:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,466,1557212400"; d="scan'208";a="176100875" Received: from ubuntu.sh.intel.com ([10.67.119.68]) by orsmga002.jf.intel.com with ESMTP; 08 Jul 2019 01:41:50 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Mon, 8 Jul 2019 09:19:29 +0800 Message-Id: <1562548769-9149-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/dynamic_queue: add ringsize condition X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- 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