From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0056.outbound.protection.outlook.com [104.47.40.56]) by dpdk.org (Postfix) with ESMTP id D49D42C35 for ; Thu, 6 Apr 2017 19:52:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=xOVnne2EGpjGp10T5MY8EZy9sa+7BD1wSojU/oVnlF4=; b=KqI8N9pLTyRDbga/hmYSr9HlLi4mhJwXtKDEKPOowJCx09ZeuMwWzZVPbZMi+NqHBZCMiCm+jU3DeyOzFEQPebKaepxH0opafD2taBiGS778+ZyYWcRMie5bzz2h2BGG6P8ptmnxj8D3SfTqSLsI1hO19QUgF/kM5iILFRqNLq8= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from angela-H81M-S1.semihalf.local (31.172.191.173) by DM2PR0701MB810.namprd07.prod.outlook.com (10.242.127.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Thu, 6 Apr 2017 17:52:11 +0000 From: Angela Czubak To: dts@dpdk.org Cc: Angela Czubak Date: Thu, 6 Apr 2017 19:51:31 +0200 Message-Id: <1491501092-14278-26-git-send-email-aczubak@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> References: <1491501092-14278-1-git-send-email-aczubak@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [31.172.191.173] X-ClientProxiedBy: AM5PR0701CA0051.eurprd07.prod.outlook.com (10.169.145.141) To DM2PR0701MB810.namprd07.prod.outlook.com (10.242.127.24) X-MS-Office365-Filtering-Correlation-Id: aeff5476-5878-4099-ed51-08d47d15a709 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM2PR0701MB810; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 3:DU6gFeABD3I3A6s8PTCdDVg9IwjjP+/2bWV/ig9EIPfcxJFxVbENC8WoxB0znJYk5uyNAftfYiD54h93nSZcg5inST9E1eMFRIZhxAs8DS2pvwg4UT+lUDlJ7YFOkfqL5xueL7ukVHk+I2x+F0XrFHN//5anvYkZerSEzAUAvXByi1PJ0e3lWe5R4zUW3pVDq9iu/gZY66AbunjEdnDJZ0QO655Wnaunnq9o57CIWwgH1f03cJvo0QasvQOZvgfC7RCrTqFwZG8k58v5lceTSnA4rkrjms0k30J537+9G8elCTyWbYHkAHpRTUnFWqWtEVp2st5KN+ygUK0/A/14qQ==; 25:8dQSFaos/1Hh9Kw1QMTMzTluywqV9LRUWTOh+tvneajDEPFI1YjrRQqkYpEJpbH1gzpAMfriK6DWUDRC2/Le/qivHezuvOisQn82bQp8cklt4ApsldW3UrtEv8itxUy3pPMvmJf7KFgThVwviXlE5gr24hnrDY65EQGnQkwhfCD4PiouflrEfQT2c/Fsv5sR/FhVblM1rLFkL6QWOlwqcJAMTOZnU9rJ5b5DWL1Vjf5Jwm4gubZRtwuMhq8UpxKpPFArPTHXn/7OFF9scuWwav9/uwAOFLIhDsd9UgTIK6Oan1JprcBtIt+Jj9Jy+5dBoKi1ReEDVnqe+KKLvEKlEYJo/AuF4zTPVH3hPRp2je9+Y8FXdiJC/wqVC+DTYZu4BhkpNQ/DM/CgCrwMYTPFOdmnXU8FzkHIAymuRmmBKAOs81UPE7zBD8K7ZE5SOdxQF/jkFC4ETBU394v8/jN0dw== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 31:Kk0Njof72TxLsYQlxrMnYBdRFYg3wZPrwzDjcD25RMksgrRf4VnK/nqP7v4s+axXb3VEOSZ1PFay5GT2hJPeik83zHQ3FcQQoTV4ybFq2j6X81wz+G0H23jlgom2/SyuyyHWMibVAiu/L6KzJr7vkkGULUdWt+82I/dnhFAHbqeQn5Q8EgRoN5arOzQylM5hAJbZPl1rBkLtRsgWxRPcMnV5o87Ho2TBPn+OrBQTg54IphyYwvDSkQIRcq2SIkNL; 20:hK21Q5MHsVK1gvLctxpHdb437MdRJkpx/HWA7MvojagQxe9RTnJ144w1HehG4Z7giIT9SZzD8pMpYKMczIEENfV/M69wHEOJXI1/EwNJsMo4Vk5xKS/F7+IiafrsAihW6Fim5cemZNJh0gfh8FFlqqQhSpHhYSQRtityxTN3zs3xF6y0MN8LJru9QM4n7OM6iZ6Pz0o4qoVoGyD9od7NVU7LTCrOrG5Nq1GOOyQrCOX2kI0xLPpumTPKXkudbULqyJqclR9b75qqf4lVIUoXq5SlrAhH/AlqNJFwwj/qqnqn1ftKrdlP2IZ0dplRZNjA4CoFwKE54lL76OmxWRhfmWcOQH/A/Lps8cCxC+FJt0hdfHotiGiOKuAnre2HUxNEKi/Ui2c0O0jbrfVB3jCCXCA1JJ5pbVszWAg7Ty4tSmqYrH3MiwpozPAoSRqoLzhq6JetlRNlQRgVXW3Bq6EPPnC7oQ3GvS/HBvSsOuHIBMOAaQ5ArS6MYo19sA3IlLnc40WecxaP8xaHe1VPiQG2Kw8xMSw7bWhqaMSMQXfBd2eXsmL7XwATQqJ+7ZRjjlsawo5zVIKww85jenJgeMHmy8ZHgK8nL6W0jSQWs9DmDzY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(6072148); SRVR:DM2PR0701MB810; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB810; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 4:PsWROjl7EJFgwlBdMSjVOe6Aruf6L3P9AtXZMgX+1lnGNgoX+jWXZMGe5po4YlNxq22iugoq657U0L4CiDbGdvNLYtW6UthYy6F1TOQ8jd47dWrwXmjwUiLXWdrVa9Da4i2B+bDzICp4azCvjyvDcFI/K9qXwqO1zTPlChU27PEd811+UN/Z0+C1Wqz1f9Uk1kHm4luzABf1zT3EmuGtoObd93OCM7vrDGW55Z52k/6ZGpe7QPYgVGIS8Hf+jye0+Ppzj8S/uW86wCyv3INOgiPJ7WrKj/kj9v/fnoJs5yQymix/5CGj3Ut1LnKRSlp7Z/Wx6Y4Iy5KPygC57whl1xu827/U9b0S71ZXcB3Csl7EtGoP0ZZEyNHySQPgcGjkfYfzIe4HLdCCoBkTC2F97Phse2v6TI2sSS5xfVOSWNTNvDmREWuyNtm7QszyQqk6zEz34O7E6zr2rL4/gI8I7QpUlVmJUEC5uiTj4AScr/43tPtbC1uXAFxKrTf2loWD4yfVZdvDZWKNY0huAHCqK9VIbKBX64CTUtAm2gRw5QzPOhHFJmCi6BDh//UMh3Bt70vgKqVHxk08csRtP5tfRODk/6dfBYnKfuxTV6+jNApsEzqB0IHpP7/l9SEiP9DFk+RWzTg6Ww2pvLWH4tzgX2oc/X/9qIqUp2VEAWvEwROXzzmZec31tybNAJ4c0mFh X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(979002)(6009001)(39830400002)(39450400003)(39400400002)(39410400002)(3846002)(50226002)(6116002)(47776003)(33646002)(6506006)(189998001)(6486002)(48376002)(50466002)(36756003)(66066001)(8676002)(5003940100001)(2361001)(42882006)(110136004)(107886003)(38730400002)(76176999)(25786009)(2351001)(6666003)(81166006)(42186005)(15650500001)(50986999)(6916009)(6512007)(7736002)(53936002)(4326008)(5660300001)(305945005)(2950100002)(2906002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB810; H:angela-H81M-S1.semihalf.local; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB810; 23:JVOynvgsJnNZXM6YOrI0rKszwZCkZ0u16WACjkRV?= =?us-ascii?Q?q38DBq/SniT0zeMWkOBqY5suEmRFDVqEqhQLyvpWBeLB8AQ5bR1d+A4s82Nu?= =?us-ascii?Q?IhVqZJlPrjhnBOFGTyoSunqOBp7WrbjMTGQN9smyMwKGMF/86LNDCuznAlM+?= =?us-ascii?Q?NhRzxSJR4O6Lmg6CDoiGJqmsT0QulVDym/T4HCYFCOWqL193NEbFk/4nPtLT?= =?us-ascii?Q?sfj3noKQlr7uKSRKftfeSLjFiiC5cJ36Cxkd9Pnlp6LeSFHww7LDHQcaqJpP?= =?us-ascii?Q?N7uS/VuXHLvRQaYOeZN671AZzb6QDRW1r/wURGq69AYJJQMl9FD6KP4BqLdV?= =?us-ascii?Q?40PayUGhlsJP6Hufz/3sFlEuUpIhfupNaK7MuouyDqQlGWCYdExB6sjXUioU?= =?us-ascii?Q?xFvPJqvPUZ01MJYaKvKRz/SQNeqE5bxD4POhcKNIU99Hftftj2VGcbCWgHEe?= =?us-ascii?Q?GcyKYu1QnVx7kMgbzwp7Z5gTxTZhpirYlHCeDyAxpW8Mrrt0Owi3+NwZ6wrs?= =?us-ascii?Q?RqADoFN0WQRGfPhl5F0V1C9HEq6D+JrNlezA/Kf4WU87bFhyoEPG3zI8bgV/?= =?us-ascii?Q?aRg9A1QehcNg1rTpKAm9jD1FQdfr2OyaHaLGEXqbiVi9hHqvRgrUhtrfRZ9T?= =?us-ascii?Q?ZE0R62soFnVh937UFFw/mA16s4QhaWA9JTKOyJovTJVGhSQx4b7bayqTFLn8?= =?us-ascii?Q?sq2NNygkulP10sRTfrr660Ld96OIsB903sMlRF3uleoWTkX9VhgwEyQL+nJf?= =?us-ascii?Q?U339t9blHEwFUOwxr/gKeRziiWmud8X75q2QReF3LopjoqhP95a+lZ7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qTe3WY6nZDRCNZoOTuZo4R410zV/xQflFTy1J9308zXCXxQEvSde6prl0w00vew4bKak0KQxG12kp4HDEWNyCXQHDk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB810; 7:TsBrQiaEuZOTHMsTeGBAxfe3javWiWlQYQHjZAqmPjgyTK1VuQKpNtykJLVxiRk738Rj4kVnRD7rzW2xMTAZegfTKgkxG6pLAjk/JdlsRgyX1LwrkSMmn0B9phSBQ+KuWC41T/R47+64PHMbpxdTqQBHU4iim4kYDMwLQutS8xBp8Umjr4D3ThW/w/0p0LLrLG9ynpqLy4HymlS2gk4Q1o+EZ5v5QlRzCDeo8OUSqH17G7EHKDi+s9g5nXJ6Uv8TRCff/36uvROzIyqPrjMEdGTnN6vtvBbU+3F8XefQZRc+uWcBOVkgNizl/j6zaEt6bm9VehzdWoQx+vKkUslk5A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 17:52:11.0498 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB810 Subject: [dts] [PATCH 25/26] tests: unit_tests_dump - taking into account cavium NICs 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: , X-List-Received-Date: Thu, 06 Apr 2017 17:52:14 -0000 Testpmd must be run with hardware VLAN filter disabled as thunder driver does not support this feature - --disable-hw-vlan-filter is appended if NIC is Cavium device. In test_ring_dump, matching the mbuf_pool is done against the first element of group (instead of the last one), since it is the first group matched. Signed-off-by: Angela Czubak --- tests/TestSuite_unit_tests_dump.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_unit_tests_dump.py b/tests/TestSuite_unit_tests_dump.py index 0ec8d78..fa09894 100644 --- a/tests/TestSuite_unit_tests_dump.py +++ b/tests/TestSuite_unit_tests_dump.py @@ -85,7 +85,10 @@ class TestUnitTestsDump(TestCase): """ Run history log dump test case. """ - self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time) + cmd = "./%s/app/testpmd -n 1 -c f -- -i" + if "cavium" in self.dut.nic_type: + cmd += " --disable-hw-vlan-filter" + self.dut.send_expect(cmd % (self.target), "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_ring", "testpmd>", self.run_cmd_time) self.dut.send_expect("quit", "# ") match_regex = "ring <(.*?)>@0x(.*)\r\n" @@ -94,13 +97,16 @@ class TestUnitTestsDump(TestCase): # Nic driver will create multiple rings. # Only check the last one to make sure ring_dump function work. - self.verify( 'MP_mbuf_pool_socket_0' in result[0][-1], "dump ring name failed") + self.verify( 'MP_mbuf_pool_socket_0' in result[0][0], "dump ring name failed") def test_mempool_dump(self): """ Run mempool dump test case. """ - self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time) + cmd = "./%s/app/testpmd -n 1 -c f -- -i" + if "cavium" in self.dut.nic_type: + cmd += " --disable-hw-vlan-filter" + self.dut.send_expect(cmd % (self.target), "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_mempool", "testpmd>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") match_regex = "mempool <(.*?)>@0x(.*?)\r\n" @@ -133,7 +139,10 @@ class TestUnitTestsDump(TestCase): """ Run memzone dump test case. """ - self.dut.send_expect("./%s/app/testpmd -n 1 -c f -- -i" % (self.target), "testpmd>", self.start_test_time) + cmd = "./%s/app/testpmd -n 1 -c f -- -i" + if "cavium" in self.dut.nic_type: + cmd += " --disable-hw-vlan-filter" + self.dut.send_expect(cmd % (self.target), "testpmd>", self.start_test_time) out = self.dut.send_expect("dump_memzone", "testpmd>", self.run_cmd_time * 2) self.dut.send_expect("quit", "# ") -- 2.7.4