From: Zhimin Huang <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: Zhimin Huang <zhiminx.huang@intel.com>
Subject: [dts] [PATCH V1] switch_filter: add reload ice code
Date: Thu, 8 Apr 2021 16:15:55 +0800 [thread overview]
Message-ID: <1617869755-4362-1-git-send-email-zhiminx.huang@intel.com> (raw)
*.about switch filter kernel issue need reload ice to release resources.
Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
---
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
next reply other threads:[~2021-04-08 8:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-08 8:15 Zhimin Huang [this message]
2021-04-08 8:33 ` Huang, ZhiminX
2021-04-08 8:48 ` Fu, Qi
2021-04-12 5:41 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1617869755-4362-1-git-send-email-zhiminx.huang@intel.com \
--to=zhiminx.huang@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).