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 0F2E4A0524; Wed, 2 Jun 2021 04:10:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C6AFE4069F; Wed, 2 Jun 2021 04:10:35 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 9301440689 for ; Wed, 2 Jun 2021 04:10:33 +0200 (CEST) IronPort-SDR: ec3FjgT2RDbkhy3Qt1ZhE1+9/OyoKL4gja6wZOHACWhJiCFIyYjT+qbRnMOJ/R1YvRMPqEX8FM Ux1CaTVAIYiQ== X-IronPort-AV: E=McAfee;i="6200,9189,10002"; a="289311086" X-IronPort-AV: E=Sophos;i="5.83,241,1616482800"; d="scan'208";a="289311086" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2021 19:10:31 -0700 IronPort-SDR: 2jdgTcPsP/gamdfBSPhxZsflF14tTy1/NjqyzAkX5Ba54vb61EK+MF4Apz2xB1PYWUuGsla9fT /Pf0kF1j3qxA== X-IronPort-AV: E=Sophos;i="5.83,241,1616482800"; d="scan'208";a="635699225" Received: from unknown (HELO localhost.localdomain) ([10.240.183.105]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2021 19:10:31 -0700 From: Qin Sun To: dts@dpdk.org Cc: Qin Sun Date: Wed, 2 Jun 2021 10:41:56 +0000 Message-Id: <20210602104156.30955-1-qinx.sun@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [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" some cases need to reload the driver to clear the packet count received by the network card, so as to avoid the verification failure caused by other cases Signed-off-by: Qin Sun --- tests/TestSuite_iavf_fdir.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 = self.dut.new_session() self.session_third = self.dut.new_session() @@ -3137,6 +3140,9 @@ class TestIAVFFdir(TestCase): create same input set but different action 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 = self.dut.new_session() self.session_third = self.dut.new_session() -- 2.17.1