[v1] tests/nic_single_core_perf: Initalize packet generator

Message ID 20220118163032.30837-1-ohilyard@iol.unh.edu (mailing list archive)
State Superseded
Series [v1] tests/nic_single_core_perf: Initalize packet generator |


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

Commit Message

Owen Hilyard Jan. 18, 2022, 4:30 p.m. UTC
  From: Owen Hilyard <ohilyard@iol.unh.edu>

Call the initialization function for the packet generator to make sure
it is set up properly before trying to use it.

Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
 tests/TestSuite_nic_single_core_perf.py | 1 +
 1 file changed, 1 insertion(+)


Owen Hilyard Jan. 18, 2022, 6:11 p.m. UTC | #1
After more testing, it seems like this causes issues for some Nics due to
various compatibility workarounds elsewhere in DTS. I'll submit a v2 once
I've found the root cause and a fix for it.


diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py
index 1012dbf3..8515861b 100644
--- a/tests/TestSuite_nic_single_core_perf.py
+++ b/tests/TestSuite_nic_single_core_perf.py
@@ -89,6 +89,7 @@  class TestNicSingleCorePerf(TestCase):
             self.output_path = os.sep.join([cur_path, self.logger.log_path])
         # create an instance to set stream field setting
         self.pktgen_helper = PacketGeneratorHelper()
+        self.tester.init_ext_gen()
     def set_up(self):