From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A484AA0C46; Wed, 9 Jun 2021 09:16:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73DD440FDF; Wed, 9 Jun 2021 09:16:14 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id D597440E3C for ; Wed, 9 Jun 2021 09:16:12 +0200 (CEST) IronPort-SDR: xVJ5FYD4zgsQOnU2kJLYVSB1tFa1ENsmjsxEQk0N19z+KuELPrpFeMKtip/61QBqFE7fBXP17i 5z5ouLF2xsAg== X-IronPort-AV: E=McAfee;i="6200,9189,10009"; a="192128672" X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="192128672" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2021 00:16:11 -0700 IronPort-SDR: ikZLP5ycw7GL16qf7PK+c1KraaZO/t6lo6htZp9UrwsEf7/WMP1UyKp3RPg56vUcS3z2MBWC2K EDb/eW7UaIgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="402349750" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga003.jf.intel.com with ESMTP; 09 Jun 2021 00:16:09 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 9 Jun 2021 00:16:08 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 9 Jun 2021 15:16:06 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.008; Wed, 9 Jun 2021 15:16:06 +0800 From: "Tu, Lijuan" To: "Sun, QinX" , "dts@dpdk.org" CC: "Sun, QinX" Thread-Topic: [dts] [PATCH V1] tests/iavf_fdir: reload driver to reduce the interaction between cases Thread-Index: AQHXV1SGDJRKjS0iYUaFg5wRswhSKKsLT3/A Date: Wed, 9 Jun 2021 07:16:06 +0000 Message-ID: <114d3b0c78aa45e1a8e2f1e06c4f8176@intel.com> References: <20210602104156.30955-1-qinx.sun@intel.com> In-Reply-To: <20210602104156.30955-1-qinx.sun@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/iavf_fdir: reload driver to reduce the interaction between cases X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" Reload driver is not a good idea, it will impact other devices which are no= t under test. I think 'clear port stats' could help. > -----Original Message----- > From: dts On Behalf Of Qin Sun > Sent: 2021=1B$BG/=1B(B6=1B$B7n=1B(B2=1B$BF|=1B(B 18:42 > To: dts@dpdk.org > Cc: Sun, QinX > Subject: [dts] [PATCH V1] tests/iavf_fdir: reload driver to reduce the in= teraction > between cases >=20 > some cases need to reload the driver to clear the packet count received b= y the > network card, so as to avoid the verification failure caused by other cas= es >=20 > Signed-off-by: Qin Sun > --- > tests/TestSuite_iavf_fdir.py | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py = index > 27f92f8..e1f7c28 100644 > --- a/tests/TestSuite_iavf_fdir.py > +++ b/tests/TestSuite_iavf_fdir.py > @@ -2986,6 +2986,9 @@ class TestIAVFFdir(TestCase): > create same rules on pf and vf, no conflict > """ > self.dut.kill_all() > + self.dut.send_expect("rmmod ice", "# ", 15) > + self.dut.send_expect("modprobe ice", "# ", 15) > + self.setup_2pf_4vf_env() > self.session_secondary =3D self.dut.new_session() > self.session_third =3D self.dut.new_session() >=20 > @@ -3137,6 +3140,9 @@ class TestIAVFFdir(TestCase): > create same input set but different action rules on pf and vf, n= o conflict. > """ > self.dut.kill_all() > + self.dut.send_expect("rmmod ice", "# ", 15) > + self.dut.send_expect("modprobe ice", "# ", 15) > + self.setup_2pf_4vf_env() > self.session_secondary =3D self.dut.new_session() > self.session_third =3D self.dut.new_session() >=20 > -- > 2.17.1