From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 12BCA2946 for ; Tue, 7 Mar 2017 07:43:50 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2017 22:43:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,257,1484035200"; d="scan'208";a="1105639058" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 06 Mar 2017 22:43:49 -0800 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Tue, 7 Mar 2017 14:45:13 +0800 Message-Id: <1488869113-6242-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] fix niantic ethtool -i not support issue 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: Tue, 07 Mar 2017 06:43:51 -0000 The virtual nic by kni on niantic nic, it only support ethool and ethool -k operation. Signed-off-by: xu,huilong --- 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