diff mbox series

[v2] tests/nic_single_core_perf: Initalize packet generator

Message ID 20220124203550.25865-1-ohilyard@iol.unh.edu (mailing list archive)
State Accepted
Headers show
Series [v2] tests/nic_single_core_perf: Initalize packet generator | expand

Checks

Context Check Description
ci/Intel-dts-suite-test success Testing OK

Commit Message

Owen Hilyard Jan. 24, 2022, 8:35 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>
---
 framework/pktgen_trex.py | 1 +
 1 file changed, 1 insertion(+)

Comments

Tu, Lijuan Jan. 26, 2022, 6:23 a.m. UTC | #1
> -----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
diff mbox series

Patch

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():