* [PATCH] net/vdev_netvsc: block driver in github action
@ 2026-02-23 17:21 Stephen Hemminger
2026-02-23 23:29 ` Stephen Hemminger
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2026-02-23 17:21 UTC (permalink / raw)
To: dev; +Cc: Stephen Hemminger, Matan Azrad
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@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net/vdev_netvsc: block driver in github action
2026-02-23 17:21 [PATCH] net/vdev_netvsc: block driver in github action Stephen Hemminger
@ 2026-02-23 23:29 ` Stephen Hemminger
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2026-02-23 23:29 UTC (permalink / raw)
To: dev; +Cc: Matan Azrad
On Mon, 23 Feb 2026 09:21:37 -0800
Stephen Hemminger <stephen@networkplumber.org> wrote:
> 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@networkplumber.org>
> ---
Sigh, this won't work either.
The problem is that the CI runs tests with sudo and that strips the environment away.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-23 23:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 17:21 [PATCH] net/vdev_netvsc: block driver in github action Stephen Hemminger
2026-02-23 23:29 ` Stephen Hemminger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox