[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/16] net: unbreak well-form id check for "-nic"
From: |
Jason Wang |
Subject: |
[PULL 04/16] net: unbreak well-form id check for "-nic" |
Date: |
Fri, 12 Mar 2021 14:16:14 +0800 |
The auto genreated id for "-nic" has "_" prefix which can't satisfy
the well-formed id check that is introduced by
871579b9834aca517dc2d4941691a1d2082db6f2 ("net: validate that ids are
well formed"). Fix this by simply removing the "__" prefix.
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
net/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/net.c b/net/net.c
index d36729f..254b42f 100644
--- a/net/net.c
+++ b/net/net.c
@@ -1479,7 +1479,7 @@ static int net_param_nic(void *dummy, QemuOpts *opts,
Error **errp)
/* Create an ID if the user did not specify one */
nd_id = g_strdup(qemu_opts_id(opts));
if (!nd_id) {
- nd_id = g_strdup_printf("__org.qemu.nic%i", idx);
+ nd_id = g_strdup_printf("org.qemu.nic%i", idx);
qemu_opts_set_id(opts, nd_id);
}
--
2.7.4
- [PULL 00/16] Net patches, Jason Wang, 2021/03/12
- [PULL 04/16] net: unbreak well-form id check for "-nic",
Jason Wang <=
- [PULL 06/16] net: introduce qemu_receive_packet(), Jason Wang, 2021/03/12
- [PULL 05/16] e1000: fail early for evil descriptor, Jason Wang, 2021/03/12
- [PULL 07/16] e1000: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/03/12
- [PULL 08/16] dp8393x: switch to use qemu_receive_packet() for loopback packet, Jason Wang, 2021/03/12
- [PULL 09/16] msf2-mac: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/03/12
- [PULL 10/16] sungem: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/03/12
- [PULL 11/16] tx_pkt: switch to use qemu_receive_packet_iov() for loopback, Jason Wang, 2021/03/12
- [PULL 12/16] rtl8139: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/03/12
- [PULL 13/16] pcnet: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/03/12
- [PULL 14/16] cadence_gem: switch to use qemu_receive_packet() for loopback, Jason Wang, 2021/03/12