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 4DC73A0579; Thu, 8 Apr 2021 10:29:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 484A3141120; Thu, 8 Apr 2021 10:29:06 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id A696014111E for ; Thu, 8 Apr 2021 10:29:04 +0200 (CEST) IronPort-SDR: TkcHqNzlBZmyZU/dQX5ptMu8MVNwVhJqr2Qu/MouvPAHQ7KF1TrDIeuAQLEIM6o7yjJvqMj8vD A2p9PQRW3EXQ== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="254829274" X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="254829274" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 01:29:02 -0700 IronPort-SDR: pxeFOAN4JNOV33wG4fXTd1nTHU+GWGo4bpMhSM6cb0oCNPB0QrsmpMnX6wKOZJjPwTGaRuURkp /+VAGWTwDBiQ== X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="458732411" Received: from unknown (HELO dpdk-huangzm-d.sh.intel.com) ([10.240.183.72]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 01:29:00 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Thu, 8 Apr 2021 16:15:55 +0800 Message-Id: <1617869755-4362-1-git-send-email-zhiminx.huang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] switch_filter: add reload ice code 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" *.about switch filter kernel issue need reload ice to release resources. Signed-off-by: Zhimin Huang --- tests/TestSuite_cvl_dcf_switch_filter.py | 6 +++++- tests/TestSuite_cvl_dcf_switch_filter_pppoe.py | 6 +++++- tests/TestSuite_cvl_switch_filter.py | 5 +++++ tests/TestSuite_cvl_switch_filter_pppoe.py | 5 +++++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_cvl_dcf_switch_filter.py b/tests/TestSuite_cvl_dcf_switch_filter.py index b9b6d3b..fc257cb 100644 --- a/tests/TestSuite_cvl_dcf_switch_filter.py +++ b/tests/TestSuite_cvl_dcf_switch_filter.py @@ -1052,11 +1052,15 @@ class CVLDCFSwitchFilterTest(TestCase): port.bind_driver(self.vf_driver) time.sleep(5) + def reload_ice(self): + self.dut.send_expect("rmmod ice", "# ", 15) + self.dut.send_expect("modprobe ice", "# ", 15) + def set_up(self): """ Run before each test case. """ - pass + self.reload_ice() def create_testpmd_command(self): """ diff --git a/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py b/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py index 247561c..a3f09ec 100644 --- a/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py +++ b/tests/TestSuite_cvl_dcf_switch_filter_pppoe.py @@ -548,11 +548,15 @@ class CVLDCFSwitchFilterPPPOETest(TestCase): port.bind_driver(self.vf_driver) time.sleep(5) + def reload_ice(self): + self.dut.send_expect("rmmod ice", "# ", 15) + self.dut.send_expect("modprobe ice", "# ", 15) + def set_up(self): """ Run before each test case. """ - pass + self.reload_ice() def create_testpmd_command(self): """ diff --git a/tests/TestSuite_cvl_switch_filter.py b/tests/TestSuite_cvl_switch_filter.py index dcf9a57..5ec8b18 100644 --- a/tests/TestSuite_cvl_switch_filter.py +++ b/tests/TestSuite_cvl_switch_filter.py @@ -2566,10 +2566,15 @@ class CVLSwitchFilterTest(TestCase): self.generate_file_with_fdir_rules() self.path = self.dut.apps_name['test-pmd'] + def reload_ice(self): + self.dut.send_expect("rmmod ice", "# ", 15) + self.dut.send_expect("modprobe ice", "# ", 15) + def set_up(self): """ Run before each test case. """ + self.reload_ice() def generate_file_with_fdir_rules(self): """ diff --git a/tests/TestSuite_cvl_switch_filter_pppoe.py b/tests/TestSuite_cvl_switch_filter_pppoe.py index 8904b47..c294954 100644 --- a/tests/TestSuite_cvl_switch_filter_pppoe.py +++ b/tests/TestSuite_cvl_switch_filter_pppoe.py @@ -2048,6 +2048,11 @@ class CVLSwitchFilterPPPOETest(TestCase): """ Run before each test case. """ + self.reload_ice() + + def reload_ice(self): + self.dut.send_expect("rmmod ice", "# ", 15) + self.dut.send_expect("modprobe ice", "# ", 15) def generate_file_with_fdir_rules(self): """ -- 1.8.3.1