From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80C7AA0543; Sun, 9 Oct 2022 17:32:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B4244113F; Sun, 9 Oct 2022 17:32:27 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 70E6740042 for ; Sun, 9 Oct 2022 17:32:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665329545; x=1696865545; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Ba3zoTHIua21PY37bDfsU3e6XXp84d+jsMP1FJZIhH4=; b=iorFY9WvXEUbnKXxw4XdaTy6Gcnved1/2lC/rcxAwOPvAB3zL0qusuNI zqx3DCNj1p8kKvAo8FWtqAJwy35qVes58Gnf0LicSyOaqgwVdgS6ou3tx 6oFagMW9W1oT9f4/yisTJMNICzvP5JTZCvKSjaN4goZNCqnTeWzNNJnA0 Xj7J7JcwAlX7OxNvaecgKnnaqdwbqu9AuwX1blXNwkQhV5ap3qfpDxn5q rTdAMOye2ac3N6JHk0lhhowBCfvljNjHCTlRWjwAuTZxFh97zGF3uhsgE eqO5w4t0zR+UuREz7ehY9EB+4D7jE//4Ql7IEhkezWDFi/fNP4CYoVd4B A==; X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="305089822" X-IronPort-AV: E=Sophos;i="5.95,171,1661842800"; d="scan'208";a="305089822" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 08:32:25 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="620781420" X-IronPort-AV: E=Sophos;i="5.95,171,1661842800"; d="scan'208";a="620781420" Received: from unknown (HELO localhost.localdomain) ([10.239.252.93]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 08:32:23 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts][PATCH V1 2/2] tests/ice_dcf_qos:modify the command according to the dpdk changed Date: Mon, 10 Oct 2022 07:42:43 +0800 Message-Id: <20221009234243.17428-3-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221009234243.17428-1-zhiminx.huang@intel.com> References: <20221009234243.17428-1-zhiminx.huang@intel.com> X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 1.according to dpdk 5779a8894d154bf0b6b1c13ce5ce5961e1dfc29d. it's add shaper profile id check,if we do not need to do anything for the exact node, the shaper profile id should be -1, not 0 or any other numbers. 2.optimized start testpmd function to adapt the latest dts framework. 3.abs() should set variable. Signed-off-by: Zhimin Huang --- tests/TestSuite_ice_dcf_qos.py | 885 +++++++++++++++++---------------- 1 file changed, 443 insertions(+), 442 deletions(-) diff --git a/tests/TestSuite_ice_dcf_qos.py b/tests/TestSuite_ice_dcf_qos.py index f1890b4d..8dfce3f4 100644 --- a/tests/TestSuite_ice_dcf_qos.py +++ b/tests/TestSuite_ice_dcf_qos.py @@ -181,11 +181,11 @@ class TestICEDcfQos(TestCase): return False bias = 10 if unit == "MBps": - return (100 * (real_bps / 8 / 1e6 - _expected) / _expected) < abs(bias) + return abs(100 * (real_bps / 8 / 1e6 - _expected) / _expected) < bias elif unit == "-MBps": return real_bps / 8 / 1e6 < _expected elif unit in ["Gbps", "rGbps"]: - return (100 * (real_bps / 1e9 - _expected) / _expected) < abs(bias) + return abs(100 * (real_bps / 1e9 - _expected) / _expected) < bias return True def get_custom_nic_port(self, nic_name, num=None): @@ -421,12 +421,13 @@ class TestICEDcfQos(TestCase): self.is_pmd_on = False def testpmd_start(self, vfs_group): - allow_list = [] + port_list = [] + port_options = {} for vfs in vfs_group: for idx, vf in enumerate(vfs): - addr = f"{vf},cap=dcf" if idx == 0 else vf - allow_list.append(addr) - eal_param = " ".join(allow_list) + port_list.append(vf) + if idx == 0: + port_options[vf] = "cap=dcf" param = ("{xq} " "{nb-cores} " "{topo}").format( **{ "xq": "--txq=8 --rxq=8", @@ -435,7 +436,7 @@ class TestICEDcfQos(TestCase): } ) self.pmd_output.start_testpmd( - cores="1S/9C/1T", param=param, **{"ports": allow_list} + cores="1S/9C/1T", param=param, ports=port_list, port_options=port_options ) self.is_pmd_on = True @@ -490,18 +491,18 @@ class TestICEDcfQos(TestCase): "port tm hierarchy commit 0 no", self.check_error_output if commit_check else None, ], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", [ "port tm hierarchy commit 1 no", self.check_error_output if commit_check else None, @@ -534,18 +535,18 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 no", self.check_error_output], "port start all", "set fwd mac", @@ -599,18 +600,18 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 no", self.check_error_output], "port start all", "set fwd mac", @@ -660,29 +661,29 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 2 2 800 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 2 3 800 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], - "add port tm nonleaf node 3 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 3 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 3 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 3 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 3 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 3 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 yes", self.check_error_output], "port start all", "set fwd mac", @@ -767,29 +768,29 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 2 2 800 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 2 3 800 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], - "add port tm nonleaf node 3 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 3 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 3 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 3 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 3 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 3 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 yes", self.check_error_output], "port start all", "set fwd mac", @@ -857,31 +858,31 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 2 4 700 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 2 5 700 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], - "add port tm nonleaf node 3 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 3 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 3 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 3 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 3 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 3 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 yes", self.check_error_output], "port start all", "set fwd mac", @@ -966,31 +967,31 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 7 700 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 0 8 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], - "add port tm nonleaf node 2 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 2 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 2 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 2 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 2 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 2 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 2 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 2 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 2 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 2 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1021,7 +1022,7 @@ class TestICEDcfQos(TestCase): results = self.check_traffic(stream_configs, traffic_tasks) self.testpmd_close() - expected = [ + queue_mapping = [ ((1, 1), range(2)), ((1, 1), range(2)), ((1, 1), range(2, 4)), @@ -1089,53 +1090,53 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 3 4 800 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 3 5 800 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 no", self.check_error_output], - "add port tm nonleaf node 4 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 4 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 4 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 4 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 4 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 4 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 4 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 4 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 4 no", self.check_error_output], - "add port tm nonleaf node 2 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 2 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 2 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 2 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 2 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 2 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 2 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 2 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 no", self.check_error_output], - "add port tm nonleaf node 5 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 5 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 5 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 5 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 5 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 5 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 5 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 5 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 5 no", self.check_error_output], ] self.pmd_con(cmds) @@ -1221,57 +1222,57 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 3 7 700 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 3 8 700 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], - "add port tm nonleaf node 2 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 2 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 2 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 2 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 2 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 2 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 2 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 2 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 2 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 2 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 2 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 2 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], - "add port tm nonleaf node 4 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 4 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 4 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 4 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 4 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 4 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 5 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 4 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 4 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 4 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 4 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 4 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 4 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 4 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 5 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 4 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 4 yes", self.check_error_output], - "add port tm nonleaf node 5 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 5 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 5 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 5 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 5 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 5 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 5 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 5 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 5 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 5 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 5 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 5 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 5 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1347,23 +1348,23 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 14 200 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 0 15 200 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 600 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 500 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 400 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 300 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 200 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 600 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 500 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 400 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 300 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 200 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 600 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 500 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 400 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 300 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 200 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 600 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 500 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 400 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 300 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 200 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1421,23 +1422,23 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 14 200 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 0 15 200 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 600 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 500 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 400 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 300 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 200 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 600 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 500 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 400 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 300 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 200 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 600 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 500 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 400 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 300 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 200 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 600 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 500 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 400 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 300 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 200 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1473,16 +1474,16 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 0 900 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 0 1 900 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 900 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 900 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1579,41 +1580,41 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 2 14 200 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 2 15 200 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 600 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 500 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 400 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 300 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 200 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 600 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 500 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 400 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 300 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 200 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 600 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 500 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 400 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 300 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 200 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 600 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 500 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 400 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 300 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 200 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], - "add port tm nonleaf node 3 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 3 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 700 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 600 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 500 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 400 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 300 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 3 200 1000 0 1 1 0 1 0 0", - "add port tm leaf node 3 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 1 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 2 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 3 600 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 4 500 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 5 400 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 6 300 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 7 200 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 3 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 3 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 700 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 600 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 500 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 400 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 300 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 3 200 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 3 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 1 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 2 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 3 600 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 4 500 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 5 400 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 6 300 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 7 200 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1699,16 +1700,16 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 0 900 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 0 1 900 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 900 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 900 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], "add port tm node shaper profile 2 1 1000000 0 1000000000 0 0 0", "add port tm nonleaf node 2 1000 -1 0 1 0 -1 1 0 0", @@ -1716,16 +1717,16 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 2 0 900 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 2 1 900 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 2 yes", self.check_error_output], - "add port tm nonleaf node 3 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 3 900 1000 0 1 1 0 1 0 0", - "add port tm leaf node 3 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 4 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 5 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 6 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 3 7 900 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 3 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 3 900 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 3 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 4 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 5 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 6 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 3 7 900 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 3 yes", self.check_error_output], "port start all", "set fwd mac", @@ -1771,18 +1772,18 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 no", self.check_error_output], "port start all", ] @@ -2176,17 +2177,17 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 2 800000 0 1 2 1 0 0xffffffff 0 0", "add port tm leaf node 0 3 800000 0 1 2 1 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], "port start all", "set fwd mac", @@ -2244,17 +2245,17 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", "port tm hierarchy commit 1 yes", ] outputs = self.pmd_con(cmds) @@ -2264,19 +2265,19 @@ class TestICEDcfQos(TestCase): ] self.check_output(expected, outputs[-1]) cmds = [ - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 8 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 8 700 0 1 2 -1 0 0xffffffff 0 0", ] outputs = self.pmd_con(cmds) expected = "num strict priorities field (node params): SP priority not supported (error 27)" @@ -2318,17 +2319,17 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", "port tm hierarchy commit 1 yes", ] outputs = self.pmd_con(cmds) @@ -2338,18 +2339,18 @@ class TestICEDcfQos(TestCase): ] self.check_output(expected, outputs[-1]) cmds = [ - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", "port tm hierarchy commit 1 yes", ] outputs = self.pmd_con(cmds) @@ -2402,23 +2403,23 @@ class TestICEDcfQos(TestCase): self.check_output(expected, outputs[-1]) cmds = [ ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 600 1000 0 1 1 0 1 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 600 1000 0 1 1 -1 1 0 0", ] outputs = self.pmd_con(cmds) expected = "node id: too many TCs (error 33)" self.check_output(expected, outputs[-1]) cmds = [ - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 600 0 1 2 0 0 0xffffffff 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 600 0 1 2 -1 0 0xffffffff 0 0", ] outputs = self.pmd_con(cmds) expected = "parent node id: parent not exist (error 19)" @@ -2441,15 +2442,15 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 800 0 1 2 -1 0 0xffffffff 0 0", ] outputs = self.pmd_con(cmds) expected = "node id: node id already used (error 33)" @@ -2472,18 +2473,18 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 yes", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 800 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 800 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 yes", self.check_error_output], "port start all", "set fwd mac", @@ -2538,18 +2539,18 @@ class TestICEDcfQos(TestCase): "add port tm leaf node 0 4 700 0 1 2 2 0 0xffffffff 0 0", "add port tm leaf node 0 5 700 0 1 2 2 0 0xffffffff 0 0", ["port tm hierarchy commit 0 no", self.check_error_output], - "add port tm nonleaf node 1 1000 -1 0 1 0 0 1 0 0", - "add port tm nonleaf node 1 900 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 800 1000 0 1 1 0 1 0 0", - "add port tm nonleaf node 1 700 1000 0 1 1 0 1 0 0", - "add port tm leaf node 1 0 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 1 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 2 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 3 900 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 4 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 5 800 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 6 700 0 1 2 0 0 0xffffffff 0 0", - "add port tm leaf node 1 7 700 0 1 2 0 0 0xffffffff 0 0", + "add port tm nonleaf node 1 1000 -1 0 1 0 -1 1 0 0", + "add port tm nonleaf node 1 900 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 800 1000 0 1 1 -1 1 0 0", + "add port tm nonleaf node 1 700 1000 0 1 1 -1 1 0 0", + "add port tm leaf node 1 0 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 1 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 2 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 3 900 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 4 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 5 800 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 6 700 0 1 2 -1 0 0xffffffff 0 0", + "add port tm leaf node 1 7 700 0 1 2 -1 0 0xffffffff 0 0", ["port tm hierarchy commit 1 no", self.check_error_output], "port start all", "set fwd mac", @@ -3112,7 +3113,7 @@ class TestICEDcfQos(TestCase): self.vf_destroy() try: - self.pf_preset(num=1) + self.pf_preset() self.vf_init() self.vf_create(*[[self.nic_100g], 2]) vfs_group = [info.get("vfs_pci") for _, info in self.vf_ports_info.items()] -- 2.17.1