test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] switch_filter: add reload ice code
@ 2021-04-08  8:15 Zhimin Huang
  2021-04-08  8:33 ` Huang, ZhiminX
  0 siblings, 1 reply; 4+ messages in thread
From: Zhimin Huang @ 2021-04-08  8:15 UTC (permalink / raw)
  To: dts; +Cc: Zhimin Huang

*.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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] switch_filter: add reload ice code
  2021-04-08  8:15 [dts] [PATCH V1] switch_filter: add reload ice code Zhimin Huang
@ 2021-04-08  8:33 ` Huang, ZhiminX
  2021-04-08  8:48   ` Fu, Qi
  0 siblings, 1 reply; 4+ messages in thread
From: Huang, ZhiminX @ 2021-04-08  8:33 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

> -----Original Message-----
> From: Zhimin Huang <zhiminx.huang@intel.com>
> Sent: Thursday, April 8, 2021 4:16 PM
> To: dts@dpdk.org
> Cc: Huang, ZhiminX <zhiminx.huang@intel.com>
> Subject: [dts] [PATCH V1] switch_filter: add reload ice code
> 
Tested-by: Huang Zhimin <zhiminx.huang@intel.com> 

[-- Attachment #2: CVLDCFSwitchFilterPPPOETest.log --]
[-- Type: application/octet-stream, Size: 17666 bytes --]

[-- Attachment #3: CVLDCFSwitchFilterTest.log --]
[-- Type: application/octet-stream, Size: 40459 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] switch_filter: add reload ice code
  2021-04-08  8:33 ` Huang, ZhiminX
@ 2021-04-08  8:48   ` Fu, Qi
  2021-04-12  5:41     ` Tu, Lijuan
  0 siblings, 1 reply; 4+ messages in thread
From: Fu, Qi @ 2021-04-08  8:48 UTC (permalink / raw)
  To: Huang, ZhiminX, dts

Acked-by: Fu, Qi <qi.fu@intel.com>


> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Huang, ZhiminX
> Sent: Thursday, April 8, 2021 4:34 PM
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] switch_filter: add reload ice code
> 
> > -----Original Message-----
> > From: Zhimin Huang <zhiminx.huang@intel.com>
> > Sent: Thursday, April 8, 2021 4:16 PM
> > To: dts@dpdk.org
> > Cc: Huang, ZhiminX <zhiminx.huang@intel.com>
> > Subject: [dts] [PATCH V1] switch_filter: add reload ice code
> >
> Tested-by: Huang Zhimin <zhiminx.huang@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V1] switch_filter: add reload ice code
  2021-04-08  8:48   ` Fu, Qi
@ 2021-04-12  5:41     ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2021-04-12  5:41 UTC (permalink / raw)
  To: Fu, Qi, Huang, ZhiminX, dts



> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Fu, Qi
> Sent: 2021年4月8日 16:49
> To: Huang, ZhiminX <zhiminx.huang@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] switch_filter: add reload ice code
> 
> Acked-by: Fu, Qi <qi.fu@intel.com>
> 
> 
> > -----Original Message-----
> > From: dts <dts-bounces@dpdk.org> On Behalf Of Huang, ZhiminX
> > Sent: Thursday, April 8, 2021 4:34 PM
> > To: dts@dpdk.org
> > Subject: Re: [dts] [PATCH V1] switch_filter: add reload ice code
> >
> > > -----Original Message-----
> > > From: Zhimin Huang <zhiminx.huang@intel.com>
> > > Sent: Thursday, April 8, 2021 4:16 PM
> > > To: dts@dpdk.org
> > > Cc: Huang, ZhiminX <zhiminx.huang@intel.com>
> > > Subject: [dts] [PATCH V1] switch_filter: add reload ice code
> > >
> > Tested-by: Huang Zhimin <zhiminx.huang@intel.com>

Applied

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-12  5:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-08  8:15 [dts] [PATCH V1] switch_filter: add reload ice code Zhimin Huang
2021-04-08  8:33 ` Huang, ZhiminX
2021-04-08  8:48   ` Fu, Qi
2021-04-12  5:41     ` Tu, Lijuan

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ https://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git