Skip to contentSkip to conversation

Net patches

GIT PULL Applied Jason Wang 4 participants 5 messages Aug 12, 2024 Networking

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

The following changes since commit 0f397dcfecc9211d12c2c720c01eb32f0eaa7d23:

Merge tag 'pull-nbd-2024-08-08' of https://repo.or.cz/qemu/ericb into staging (2024-08-09 08:40:37 +1000)

are available in the Git repository at:

https://github.com/jasowang/qemu.git tags/net-pull-request

for you to fetch changes up to fa62cb989a9146c82f8f172715042852f5d36200:

net: Fix '-net nic,model=' for non-help arguments (2024-08-12 13:36:42 +0800)

----------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----

iQEzBAABCAAdFiEEIV1G9IJGaJ7HfzVi7wSWWzmNYhEFAma5uNkACgkQ7wSWWzmN YhFpLwf+J9+cBWKUze7FZkxNHU78GJ/b+oVQfLYPnrCRrVKoyTr9yiKfMDS8qf5/ tPd+xFABwcHb8UL3EeAe9w5aB0QCqqdmZMFRkWuaZ7HEbZkYNt9cJck5iMdNaPBm cKiFRLb8FDVA3aegCcsBqnwCxgFW+3P3rrnHQz1C+GQAOm7FER+HiFnYucjrrLSM SaXZYIH/LPqL01gbZcbixQkhgL5XFWUToFXQEYECGS07uZZ1WSJkxIP6WZDchJ4+ vYO8/fWXVdrjvDirraZQRYnurWQGpTUk0Ocn2R8MaJsF8TK031MrMRJ3YP9zXp4n wMe0BZO/YG5oi2gFrJpYL2AZqh2MgQ==
=DhS+
-----END PGP SIGNATURE-----

----------------------------------------------------------------
David Woodhouse (1):
net: Fix '-net nic,model=' for non-help arguments

 net/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
author
#1 lore raw

[PULL 1/1] net: Fix '-net nic,model=' for non-help arguments

From: David Woodhouse <[email protected]>

Oops, don't *delete* the model option when checking for 'help'.

Fixes 64f75f57f9d2 ("net: Reinstate '-net nic, model=help' output as documented in man page")
---
 net/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/net.c +1 -1
index 2eb8bc9c0b..fc1125111c 100644
@@ -1737,7 +1737,7 @@ void net_check_clients(void)
 
 static int net_init_client(void *dummy, QemuOpts *opts, Error **errp)
 {
-    const char *model = qemu_opt_get_del(opts, "model");
+    const char *model = qemu_opt_get(opts, "model");
 
     if (is_nic_model_help_option(model)) {
         return 0;
Signature · 1 line
2.42.0
#2 lore raw

Re: [PULL 1/1] net: Fix '-net nic,model=' for non-help arguments

Quoted 20 lines · Jason Wang

From: David Woodhouse <[email protected]>

Oops, don't *delete* the model option when checking for 'help'.

Fixes 64f75f57f9d2 ("net: Reinstate '-net nic, model=help' output as documented in man page")
---
 net/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/net.c +0 -0
index 2eb8bc9c0b..fc1125111c 100644

net/net.c void net_check_clients(void) · line 1743

Quoted 8 lines
net/net.c +1 -1
@@ -1737,7 +1737,7 @@ void net_check_clients(void)
 
 static int net_init_client(void *dummy, QemuOpts *opts, Error **errp)
 {
-    const char *model = qemu_opt_get_del(opts, "model");
+    const char *model = qemu_opt_get(opts, "model");
 
     if (is_nic_model_help_option(model)) {
         return 0;

Will this also fix https://gitlab.com/qemu-project/qemu/-/issues/2496 ?

thanks
-- PMM

#4 lore raw
In reply to Jason Wang
Quoted 11 lines · Jason Wang

The following changes since commit 0f397dcfecc9211d12c2c720c01eb32f0eaa7d23:

   Merge tag 'pull-nbd-2024-08-08' ofhttps://repo.or.cz/qemu/ericb into staging (2024-08-09 08:40:37 +1000)

are available in the Git repository at:

https://github.com/jasowang/qemu.git tags/net-pull-request

for you to fetch changes up to fa62cb989a9146c82f8f172715042852f5d36200:

   net: Fix '-net nic,model=' for non-help arguments (2024-08-12 13:36:42 +0800)

Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.

r~