[PATCH v2] tests/nic_single_core_perf: Initalize packet generator
ohilyard at iol.unh.edu
ohilyard at iol.unh.edu
Mon Jan 24 21:35:50 CET 2022
From: Owen Hilyard <ohilyard at 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 at 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
More information about the dts
mailing list