From: Andrew Bailey <abailey@iol.unh.edu>
To: luca.vizzarro@arm.com
Cc: dev@dpdk.org, dmarx@iol.unh.edu, probb@iol.unh.edu,
Andrew Bailey <abailey@iol.unh.edu>
Subject: [PATCH 2/2] dts: enable port binding on the TG
Date: Fri, 8 Aug 2025 14:21:09 -0400 [thread overview]
Message-ID: <20250808182152.356879-2-abailey@iol.unh.edu> (raw)
In-Reply-To: <20250808182152.356879-1-abailey@iol.unh.edu>
Currently, ports on the TG are not bound to the correct drivers prior to
running DTS. This causes DTS to crash if they are not initially bound to
the intended drivers.
Leverage TG runtime environment to bind TG ports to correct drivers
before and after running DTS.
Signed-off-by: Andrew Bailey <abailey@iol.unh.edu>
---
dts/framework/test_run.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dts/framework/test_run.py b/dts/framework/test_run.py
index 274dceebfd..16d7781536 100644
--- a/dts/framework/test_run.py
+++ b/dts/framework/test_run.py
@@ -114,6 +114,7 @@
from framework.remote_session.dpdk import (
DPDKBuildEnvironment,
DPDKSUTRuntimeEnvironment,
+ DPDKTGRuntimeEnvironment,
)
from framework.settings import SETTINGS
from framework.test_result import Result, ResultNode, TestRunResult
@@ -169,6 +170,7 @@ class TestRun:
ctx: Context
result: TestRunResult
selected_tests: list[TestScenario]
+ tg_runtime_env: DPDKTGRuntimeEnvironment
blocked: bool
remaining_tests: deque[TestScenario]
@@ -203,6 +205,7 @@ def __init__(
dpdk_build_env = DPDKBuildEnvironment(config.dpdk.build, sut_node)
dpdk_sut_runtime_env = DPDKSUTRuntimeEnvironment(config.dpdk, sut_node, dpdk_build_env)
+ self.tg_runtime_env = DPDKTGRuntimeEnvironment(tg_node)
traffic_generator = create_traffic_generator(config.traffic_generator, tg_node)
self.ctx = Context(
@@ -343,6 +346,7 @@ def next(self) -> State | None:
test_run.ctx.sut_node.setup()
test_run.ctx.tg_node.setup()
+ test_run.tg_runtime_env.setup()
test_run.ctx.dpdk.setup()
test_run.ctx.topology.setup()
--
2.50.1
prev parent reply other threads:[~2025-08-08 18:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-08 18:21 [PATCH 1/2] dts: introduce abstract class for TG and SUT DPDK runtime environments Andrew Bailey
2025-08-08 18:21 ` Andrew Bailey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250808182152.356879-2-abailey@iol.unh.edu \
--to=abailey@iol.unh.edu \
--cc=dev@dpdk.org \
--cc=dmarx@iol.unh.edu \
--cc=luca.vizzarro@arm.com \
--cc=probb@iol.unh.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).