net: Use id_generate() in the network subsystem, too
commit27eb3722e439ccf7ef37ec39592acc9ebc5c687f
authorThomas Huth <thuth@redhat.com>
Mon, 15 Feb 2021 09:02:25 +0000 (15 10:02 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 9 Mar 2021 20:47:45 +0000 (9 21:47 +0100)
treeac6323fadca53d83eecc870027ea0b4a47f4720c
parent33b2b388a54e69ba307356eb8cfdd9894112ae3f
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>
include/qemu/id.h
net/net.c
util/id.c