From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CC203A046B for ; Fri, 28 Jun 2019 11:01:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BD0F625D9; Fri, 28 Jun 2019 11:01:19 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 741421E2F for ; Fri, 28 Jun 2019 11:01:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2019 02:01:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,427,1557212400"; d="scan'208";a="183647434" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga001.fm.intel.com with ESMTP; 28 Jun 2019 02:01:17 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 28 Jun 2019 02:01:16 -0700 Received: from shsmsx106.ccr.corp.intel.com (10.239.4.159) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 28 Jun 2019 02:01:16 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.87]) by SHSMSX106.ccr.corp.intel.com ([169.254.10.89]) with mapi id 14.03.0439.000; Fri, 28 Jun 2019 17:01:14 +0800 From: "Zhu, ShuaiX" To: "Wu, ChangqingX" , "dts@dpdk.org" CC: "Wu, ChangqingX" , "Zhu, ShuaiX" Thread-Topic: [dts] [PATCH V1] tests/kni: remove case ethtool from kni Thread-Index: AQHVLY393Yu5r2KoNkOBkh3rJ2zUdaawxMyg Date: Fri, 28 Jun 2019 09:01:13 +0000 Message-ID: <4DC48DF9BDA3E54A836D2D3C057DEC6F0B1AE3D5@SHSMSX101.ccr.corp.intel.com> References: <1561711860-92109-1-git-send-email-changqingx.wu@intel.com> In-Reply-To: <1561711860-92109-1-git-send-email-changqingx.wu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action 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 V1] tests/kni: remove case ethtool from kni 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Tested-by: Zhu, ShuaiX > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of changqingxwu > Sent: Friday, June 28, 2019 4:51 PM > To: dts@dpdk.org > Cc: Wu, ChangqingX > Subject: [dts] [PATCH V1] tests/kni: remove case ethtool from kni >=20 > Signed-off-by: changqingxwu > --- > tests/TestSuite_kni.py | 87 ------------------------------------------ > 1 file changed, 87 deletions(-) >=20 > diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index > 6bf388c..7969464 100644 > --- a/tests/TestSuite_kni.py > +++ b/tests/TestSuite_kni.py > @@ -659,93 +659,6 @@ class TestKni(TestCase): > self.verify("%d packets captured" % len(packets_to_send) in > out, > "Wrong number of packets captured") >=20 > - def test_ethtool(self): > - """ > - Ethtool support KNI. > - """ > - > - # Ports and cores configuration set in set_up_all function > - # For each virtual interface perform the following operations > - for port in self.config['ports']: > - > - virtual_interface =3D self.virtual_interface_name(port) > - > - # Request settings > - out =3D self.dut.send_expect("ethtool %s" % virtual_interfac= e, > - "# ") > - self.verify("Settings for %s" % virtual_interface in out, > - "ethtool not supported") > - self.verify("Operation not supported" not in out, > - "ethtool not supported") > - > - # Request driver information > - out =3D self.dut.send_expect("ethtool -i %s" % virtual_inter= face, > - "# ") > - self.verify("driver: ixgbe" or "driver: igb" in out, > - "'ethtool -i' not supported") > - self.verify("Operation not supported" not in out, > - "'ethtool -i' not supported") > - > - # Request pause parameters > - with open("/usr/include/linux/ethtool.h", "r") as ethtool_h: > - ethtool_contents =3D ethtool_h.read() > - GSET =3D "ETHTOOL_GLINKSETTINGS" > - SSET =3D "ETHTOOL_SLINKSETTINGS" > - if (GSET in ethtool_contents) and (SSET in > ethtool_contents): > - out =3D self.dut.send_expect("ethtool -a %s" % > virtual_interface, > - "# ") > - self.verify("Pause parameters for %s" % > virtual_interface in out, > - "'ethtool -a' not supported") > - self.verify("Operation not supported" not in out, > - "ethtool '-a' not supported") > - > - # Request statistics > - out =3D self.dut.send_expect("ethtool -S %s" % virtual_inter= face, > - "# ") > - self.verify("NIC statistics" in out, > - "'ethtool -S' not supported") > - self.verify("Operation not supported" not in out, > - "ethtool '-S' not supported") > - > - # Request features status > - out =3D self.dut.send_expect("ethtool -k %s" % virtual_inter= face, > "# ") > - self.verify(("Features for %s" % virtual_interface in out) o= r > - ("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 =3D self.dut.send_expect("ethtool -g %s" % virtual_inter= face, > - "# ") > - self.verify("Ring parameters for %s" % virtual_interface in = out, > - "'ethtool -g' not supported") > - self.verify("Operation not supported" not in out, > - "'ethtool -g' not supported") > - > - # Request coalesce parameters. NOT SUPPORTED > - out =3D self.dut.send_expect("ethtool -c %s" % virtual_inter= face, > - "# ") > - self.verify("Operation not supported" in out, > - "'ethtool -c' seems to be supported. Check it.") > - > - # Request register dump > - out =3D self.dut.send_expect("ethtool -d %s" % virtual_inter= face, > - "# ") > - expectstring =3D "0x00000: CTRL.*0x00008: STATUS" > - self.verify(len(re.findall(expectstring, out, re.DOTALL)) > = 0, > "'ethtool -d' not supported") > - self.verify("Operation not supported" not in out, > - "'ethtool -d' not supported") > - > - # Request eeprom dump > - out =3D self.dut.send_expect("ethtool -e %s" % virtual_inter= face, > - "# ") > - self.verify("Offset" and "Values" in out, > - "'ethtool -e' not support") > - self.verify("Operation not supported" not in out, > - "'ethtool -e' not support") > - > def test_statistics(self): > """ > KNI Statistics test. > -- > 2.17.2