From 08712fcb851034228b61f75bd922863a984a4f60 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Tue, 17 Mar 2020 15:17:11 -0500 Subject: net: Track netdevs in NetClientState rather than QemuOpt As mentioned in the previous patch, our use of QemuOpt group "netdev" has two purposes: collect the CLI arguments, and serve as a witness for monitor hotplug actions. As the latter didn't use anything but an id, it felt rather unclean to have to touch QemuOpts at all when going through QMP, so let's instead track things with a bool field in NetClientState. Suggested-by: Markus Armbruster Signed-off-by: Eric Blake Message-Id: <20200317201711.322764-3-eblake@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- include/net/net.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/net/net.h') diff --git a/include/net/net.h b/include/net/net.h index 96e6eae..094e966 100644 --- a/include/net/net.h +++ b/include/net/net.h @@ -98,6 +98,7 @@ struct NetClientState { unsigned rxfilter_notify_enabled:1; int vring_enable; int vnet_hdr_len; + bool is_netdev; QTAILQ_HEAD(, NetFilterState) filters; }; -- cgit v1.1