[V1] tests/ice_qinq: optimization script

Message ID 20220519015831.1805264-1-songx.jiale@intel.com (mailing list archive)
State Superseded
Headers
Series [V1] tests/ice_qinq: optimization script |

Checks

Context Check Description
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Jiale, SongX May 19, 2022, 1:58 a.m. UTC
  recipe has maximum limit is 64 according to the datasheet.
reload the driver to delete existing recipes.

Signed-off-by: Jiale Song <songx.jiale@intel.com>
---
 tests/TestSuite_ice_qinq.py | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/tests/TestSuite_ice_qinq.py b/tests/TestSuite_ice_qinq.py
index b912b5c6..0804c471 100644
--- a/tests/TestSuite_ice_qinq.py
+++ b/tests/TestSuite_ice_qinq.py
@@ -469,10 +469,14 @@  class TestICEQinq(TestCase):
         self.pkt = Packet()
         self.pmd_output = PmdOutput(self.dut)
 
+    def reload_ice(self):
+        self.dut.send_expect('rmmod ice && modprobe ice', '# ')
+
     def set_up(self):
         """
         Run before each test case.
         """
+        self.reload_ice()
         self.pci_list = []
         if self.default_stats:
             self.dut.send_expect(