mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
net: Use id_generate() in the network subsystem, too
We already got a global function called id_generate() to create unique IDs within QEMU. Let's use it in the network subsytem, too, instead of inventing our own ID scheme here. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210215090225.1046239-1-thuth@redhat.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
33b2b388a5
commit
27eb3722e4
3 changed files with 5 additions and 3 deletions
|
@ -35,6 +35,7 @@ static const char *const id_subsys_str[ID_MAX] = {
|
|||
[ID_QDEV] = "qdev",
|
||||
[ID_BLOCK] = "block",
|
||||
[ID_CHR] = "chr",
|
||||
[ID_NET] = "net",
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue