* [PATCH] net: only advertise passt in netdev help when CONFIG_PASST
@ 2026-07-13 19:45 Rohitashv Kumar
2026-07-14 9:17 ` Philippe Mathieu-Daudé
2026-07-14 13:34 ` Puranjay Mohan
0 siblings, 2 replies; 3+ messages in thread
From: Rohitashv Kumar @ 2026-07-13 19:45 UTC (permalink / raw)
To: qemu-devel; +Cc: Jason Wang, Rohitashv Kumar
From: Rohitashv Kumar <roohiit@amazon.de>
show_netdevs() lists each conditionally-compiled netdev backend behind
its CONFIG_* guard (CONFIG_SLIRP for "user", CONFIG_L2TPV3 for
"l2tpv3", CONFIG_NET_BRIDGE for "bridge", ...). The "passt" entry was
added unconditionally, so "-netdev help" advertises passt even in
builds configured with --disable-passt. Trying to use it then fails
with "Parameter 'type' does not accept value 'passt'", since the QAPI
NetClientDriver enum member "passt" is gated by 'if': 'CONFIG_PASST'.
Guard the help entry with CONFIG_PASST so the advertised backends match
those actually compiled into the binary.
Signed-off-by: Rohitashv Kumar <roohiit@amazon.de>
---
net/net.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/net.c b/net/net.c
index 2892f17..5c39f8e 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1385,7 +1385,9 @@ void show_netdevs(void)
"dgram",
"hubport",
"tap",
+#ifdef CONFIG_PASST
"passt",
+#endif
#ifdef CONFIG_SLIRP
"user",
#endif
--
2.50.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] net: only advertise passt in netdev help when CONFIG_PASST
2026-07-13 19:45 [PATCH] net: only advertise passt in netdev help when CONFIG_PASST Rohitashv Kumar
@ 2026-07-14 9:17 ` Philippe Mathieu-Daudé
2026-07-14 13:34 ` Puranjay Mohan
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-07-14 9:17 UTC (permalink / raw)
To: Rohitashv Kumar, qemu-devel; +Cc: Jason Wang, Rohitashv Kumar
On 13/7/26 21:45, Rohitashv Kumar wrote:
> From: Rohitashv Kumar <roohiit@amazon.de>
>
> show_netdevs() lists each conditionally-compiled netdev backend behind
> its CONFIG_* guard (CONFIG_SLIRP for "user", CONFIG_L2TPV3 for
> "l2tpv3", CONFIG_NET_BRIDGE for "bridge", ...). The "passt" entry was
> added unconditionally, so "-netdev help" advertises passt even in
> builds configured with --disable-passt. Trying to use it then fails
> with "Parameter 'type' does not accept value 'passt'", since the QAPI
> NetClientDriver enum member "passt" is gated by 'if': 'CONFIG_PASST'.
>
> Guard the help entry with CONFIG_PASST so the advertised backends match
> those actually compiled into the binary.
>
> Signed-off-by: Rohitashv Kumar <roohiit@amazon.de>
> ---
> net/net.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: only advertise passt in netdev help when CONFIG_PASST
2026-07-13 19:45 [PATCH] net: only advertise passt in netdev help when CONFIG_PASST Rohitashv Kumar
2026-07-14 9:17 ` Philippe Mathieu-Daudé
@ 2026-07-14 13:34 ` Puranjay Mohan
1 sibling, 0 replies; 3+ messages in thread
From: Puranjay Mohan @ 2026-07-14 13:34 UTC (permalink / raw)
To: rohit.kuma1313; +Cc: jasowangio, qemu-devel, roohiit, Puranjay Mohan
On Mon, Jul 13, 2026 at 07:45:11PM +0000, Rohitashv Kumar wrote:
> From: Rohitashv Kumar <roohiit@amazon.de>
>
> show_netdevs() lists each conditionally-compiled netdev backend behind
> its CONFIG_* guard (CONFIG_SLIRP for "user", CONFIG_L2TPV3 for
> "l2tpv3", CONFIG_NET_BRIDGE for "bridge", ...). The "passt" entry was
> added unconditionally, so "-netdev help" advertises passt even in
> builds configured with --disable-passt. Trying to use it then fails
> with "Parameter 'type' does not accept value 'passt'", since the QAPI
> NetClientDriver enum member "passt" is gated by 'if': 'CONFIG_PASST'.
>
> Guard the help entry with CONFIG_PASST so the advertised backends match
> those actually compiled into the binary.
>
> Signed-off-by: Rohitashv Kumar <roohiit@amazon.de>
Reviewed-by: Puranjay Mohan <puranjay@kernel.org>
Thanks,
Puranjay
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-14 14:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 19:45 [PATCH] net: only advertise passt in netdev help when CONFIG_PASST Rohitashv Kumar
2026-07-14 9:17 ` Philippe Mathieu-Daudé
2026-07-14 13:34 ` Puranjay Mohan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.