[v2] tests/nic_single_core_perf: Initalize packet generator
Checks
Context |
Check |
Description |
ci/Intel-dts-suite-test |
success
|
Testing OK
|
Commit Message
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
> -----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
@@ -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():