From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 743701B1B9 for ; Wed, 27 Sep 2017 11:06:38 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP; 27 Sep 2017 02:06:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,444,1500966000"; d="scan'208";a="139971175" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 27 Sep 2017 02:06:37 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Wed, 27 Sep 2017 17:07:44 +0800 Message-Id: <1506503265-29342-5-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1506503265-29342-1-git-send-email-huilongx.xu@intel.com> References: <1506503265-29342-1-git-send-email-huilongx.xu@intel.com> Subject: [dts] [PATCH V1] remove repeating check nic type 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: Wed, 27 Sep 2017 09:06:38 -0000 remove dead code, because the test suite only support fortville nic, and check nic type in setup_all function already. So check nic type is repeating when set reta_num. Signed-off-by: xu,huilong --- tests/TestSuite_fortville_rss_granularity_config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/TestSuite_fortville_rss_granularity_config.py b/tests/TestSuite_fortville_rss_granularity_config.py index fed48e0..665ee20 100644 --- a/tests/TestSuite_fortville_rss_granularity_config.py +++ b/tests/TestSuite_fortville_rss_granularity_config.py @@ -82,10 +82,7 @@ class TestFortvilleRssGranularityConfig(TestCase): "fortville_spirit_single", "fortville_25g"], "NIC Unsupported: " + str(self.nic)) global reta_num - if self.nic in ["fortville_eagle", "fortville_spirit", "fortville_spirit_single"]: - reta_num = 512 - else: - self.verify(False, "NIC Unsupported:%s" % str(self.nic)) + reta_num = 512 ports = self.dut.get_ports(self.nic) self.verify(len(ports) >= 1, "Not enough ports available") -- 1.9.3