summaryrefslogtreecommitdiffstats
path: root/include/net/net.h
diff options
context:
space:
mode:
authorEric Blake2020-03-17 21:17:11 +0100
committerMarkus Armbruster2020-03-17 21:50:36 +0100
commit08712fcb851034228b61f75bd922863a984a4f60 (patch)
tree5233c6156a612b7510ba245d224bc5a759aaaf1e /include/net/net.h
parentnet: Complete qapi-fication of netdev_add (diff)
downloadqemu-08712fcb851034228b61f75bd922863a984a4f60.tar.gz
qemu-08712fcb851034228b61f75bd922863a984a4f60.tar.xz
qemu-08712fcb851034228b61f75bd922863a984a4f60.zip
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 <armbru@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20200317201711.322764-3-eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/net/net.h')
-rw-r--r--include/net/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h
index 96e6eae817..094e966af9 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;
};