From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 5ECF22BE9 for ; Thu, 17 Jan 2019 08:56:52 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jan 2019 23:56:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,488,1539673200"; d="scan'208";a="110564124" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 16 Jan 2019 23:56:50 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 16 Jan 2019 23:56:50 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 16 Jan 2019 23:56:50 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.63]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.196]) with mapi id 14.03.0415.000; Thu, 17 Jan 2019 15:56:47 +0800 From: "Zhu, WenhuiX" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] tests: Add different queue number Thread-Index: AQHUrMJkk5bV0Qtie0yADUm6PIb7o6WzGpwg Date: Thu, 17 Jan 2019 07:56:46 +0000 Message-ID: References: <1547550595-2874-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1547550595-2874-1-git-send-email-yuan.peng@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH] tests: Add different queue number 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, 17 Jan 2019 07:56:52 -0000 Tested-by: Zhu, WenhuiX -----Original Message----- From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan Sent: Tuesday, January 15, 2019 7:10 PM To: dts@dpdk.org Cc: Peng, Yuan Subject: [dts] [PATCH] tests: Add different queue number Add different queue number and iptypes to TestSuite_pmdrssreta.py Signed-off-by: Peng Yuan diff --git a/tests/TestSuite_pmdrssreta.py b/tests/TestSuite_pmdrssreta.py = index c3bbba2..1fc4739 100644 --- a/tests/TestSuite_pmdrssreta.py +++ b/tests/TestSuite_pmdrssreta.py @@ -37,7 +37,7 @@ import time import random import re import utils -testQueues =3D [16] +testQueues =3D [2, 9, 16] reta_entries =3D [] reta_lines =3D [] =20 @@ -173,9 +173,6 @@ class TestPmdrssreta(TestCase): Run at the start of each test suite. """ =20 - #self.verify( - # self.nic in ["niantic", "fortville_eagle", "fortville_spirit"= , "fortville_spirit_single"], - # "NIC Unsupported: " + str(self.nic)) ports =3D self.dut.get_ports(self.nic) self.ports_socket =3D self.dut.get_numa_id(ports[0]) self.verify(len(ports) >=3D 1, "Not enough ports available") @@ -1= 92,7 +189,13 @@ class TestPmdrssreta(TestCase): dutPorts =3D self.dut.get_ports(self.nic) localPort =3D self.tester.get_local_port(dutPorts[0]) itf =3D self.tester.get_interface(localPort) - iptypes =3D ['IPV4'] + iptypes =3D {'IPV4': 'ip', + 'IPV4&UDP': 'udp', + 'IPV4&TCP': 'tcp', + 'IPV6': 'ip', + 'IPV6&UDP': 'udp', + 'IPV6&TCP': 'tcp' + } =20 self.dut.kill_all() =20 @@ -205,12 +208,17 @@ class TestPmdrssreta(TestCase): self.pmdout.start_testpmd( "all", "--mbcache=3D128 --rxq=3D%d --txq=3D%d" % (queu= e, queue), socket=3Dself.ports_socket) =20 - for iptype in iptypes: + for iptype, rsstype in iptypes.items(): + #for iptype in iptypes: self.dut.send_expect("set verbose 8", "testpmd> ") self.dut.send_expect("set fwd rxonly", "testpmd> ") self.dut.send_expect( "set nbcore %d" % (queue + 1), "testpmd> ") =20 + out =3D self.dut.send_expect( + "port config all rss %s" % rsstype, "testpmd> ") + self.verify("error" not in out, "Configuration of RSS=20 + hash failed: Invalid argument") + # configure the reta with specific mappings. if(self.nic in ["niantic", "redrockcanyou", "atwood", "bou= lderrapid"]): for i in range(128): -- 2.5.0