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(+) 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): """ -- 2.30.2
[-- Attachment #1: Type: text/plain, Size: 192 bytes --] 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. [-- Attachment #2: Type: text/html, Size: 242 bytes --]
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> --- framework/pktgen_trex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/pktgen_trex.py b/framework/pktgen_trex.py index 2f537a0b..9f245dfd 100644 --- a/framework/pktgen_trex.py +++ b/framework/pktgen_trex.py @@ -791,6 +791,7 @@ class TrexPacketGenerator(PacketGenerator): msg = 'no stream options for trex packet generator' raise Exception(msg) + self._conn.connect() self._conn.reset(ports=self._ports) config_inst = TrexConfigStream() for port_id, config in port_config.items(): -- 2.30.2
> -----Original Message-----
> From: ohilyard@iol.unh.edu <ohilyard@iol.unh.edu>
> Sent: 2022年1月25日 4:36
> To: dts@dpdk.org
> Cc: ohilyard@iol.unh.edu; Tu, Lijuan <lijuan.tu@intel.com>
> Subject: [PATCH v2] tests/nic_single_core_perf: Initalize packet generator
>
> 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>
Applied, thanks