[dts] [PATCH V1] remove repeating check nic type

xu,huilong huilongx.xu at intel.com
Wed Sep 27 11:07:44 CEST 2017


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 <huilongx.xu at intel.com>
---
 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



More information about the dts mailing list