[dts] [PATCH V1] fix niantic ethtool -i not support issue

xu,huilong huilongx.xu at intel.com
Tue Mar 7 07:45:13 CET 2017


The virtual nic by kni on niantic nic, it only support ethool and ethool -k operation.

Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
 tests/TestSuite_kni.py | 23 +++++++++++++----------
 1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index 0825903..0e4211a 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -664,6 +664,19 @@ class TestKni(TestCase):
                         "ethtool not supported")
             self.verify("Operation not supported" not in out,
                         "ethtool not supported")
+            
+            # Request features status
+            out = self.dut.send_expect("ethtool -k %s" % virtual_interface, "# ")
+            self.verify(("Features for %s" % virtual_interface in out) or
+                        ("Offload parameters for %s" %
+                         virtual_interface in out),
+                        "'ethtool -k' not supported")
+            self.verify("Operation not supported" not in out,
+                        "'ethtool -k' not supported")
+            
+            if self.nic == 'niantic':
+               # niantic nic only support ethtool and ethtool -k operation
+                continue
 
             # Request driver information
             out = self.dut.send_expect("ethtool -i %s" % virtual_interface,
@@ -688,16 +701,6 @@ class TestKni(TestCase):
                         "'ethtool -S' not supported")
             self.verify("Operation not supported" not in out,
                         "ethtool '-S' not supported")
-
-            # Request features status
-            out = self.dut.send_expect("ethtool -k %s" % virtual_interface, "# ")
-            self.verify(("Features for %s" % virtual_interface in out) or
-                        ("Offload parameters for %s" %
-                         virtual_interface in out),
-                        "'ethtool -k' not supported")
-            self.verify("Operation not supported" not in out,
-                        "'ethtool -k' not supported")
-
             # Request ring parameters
             out = self.dut.send_expect("ethtool -g %s" % virtual_interface,
                                        "# ")
-- 
1.9.3



More information about the dts mailing list