<div dir="ltr">I think there is a missing check for if ports is None (user is not providing ports, trying to only run NO_LINKS tests).</div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Nov 21, 2025 at 4:06 PM Andrew Bailey <<a href="mailto:abailey@iol.unh.edu">abailey@iol.unh.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Currently, users must modprobe vfio-pci before running DTS when using a<br>
non-mellanox NIC. This patch automates the process on test run start up.<br>
<br>
Signed-off-by: Andrew Bailey <<a href="mailto:abailey@iol.unh.edu" target="_blank">abailey@iol.unh.edu</a>><br>
---<br>
dts/framework/test_run.py | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/dts/framework/test_run.py b/dts/framework/test_run.py<br>
index ff0a12c9ce..38f9e6c07d 100644<br>
--- a/dts/framework/test_run.py<br>
+++ b/dts/framework/test_run.py<br>
@@ -347,6 +347,10 @@ def next(self) -> State | None:<br>
test_run.ctx.dpdk.setup()<br>
test_run.ctx.topology.setup()<br>
<br>
+ if test_run.ctx.sut_node.ports[0].config.os_driver_for_dpdk == "vfio-pci":<br>
+ test_run.ctx.sut_node.main_session.send_command("modprobe vfio")<br>
+ test_run.ctx.sut_node.main_session.send_command("modprobe vfio-pci")<br>
+<br>
if test_run.config.use_virtual_functions:<br>
test_run.ctx.topology.instantiate_vf_ports()<br>
<br>
-- <br>
2.50.1<br>
<br>
</blockquote></div>