[PATCH] net/vdev_netvsc: block driver in github action
Stephen Hemminger
stephen at networkplumber.org
Mon Feb 23 18:21:37 CET 2026
On Hyper-V systems (including Azure-hosted CI), the vdev_netvsc
driver auto-injects itself during vdev bus scan. This interferes
with other tests.
Suppress this by detecting via environment variable.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
drivers/net/vdev_netvsc/vdev_netvsc.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/net/vdev_netvsc/vdev_netvsc.c b/drivers/net/vdev_netvsc/vdev_netvsc.c
index f4a84783ce..39d52b7541 100644
--- a/drivers/net/vdev_netvsc/vdev_netvsc.c
+++ b/drivers/net/vdev_netvsc/vdev_netvsc.c
@@ -805,6 +805,14 @@ vdev_netvsc_scan_callback(__rte_unused void *arg)
/** Initialize the custom scan. */
RTE_INIT(vdev_netvsc_custom_scan_add)
{
+ /*
+ * Hack: github actions run on Azure/Hyper-V container and don't
+ * want any network devices in that environment to get intertwined
+ * with any tests.
+ */
+ if (getenv("GITHUB_ACTIONS"))
+ return;
+
if (rte_hypervisor_get() == RTE_HYPERVISOR_HYPERV)
rte_vdev_add_custom_scan(vdev_netvsc_scan_callback, NULL);
}
--
2.51.0
More information about the dev
mailing list