Skip to contentSkip to conversation

net/vdev_netvsc: block driver in github action

PATCH In review Stephen Hemminger 1 participant 2 messages Feb 23 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/vdev_netvsc: block driver in github action

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.

---
 drivers/net/vdev_netvsc/vdev_netvsc.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/net/vdev_netvsc/vdev_netvsc.c +8 -0
index f4a84783ce..39d52b7541 100644
@@ -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);
 }
Signature · 1 line
2.51.0
#1 lore raw
Quoted 8 lines · On Mon, 23 Feb 2026 09:21:37 -0800 Stephen Hemminger…

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.

---

Sigh, this won't work either.
The problem is that the CI runs tests with sudo and that strips the environment away.