]> git.ipfire.org Git - thirdparty/qemu.git/commit
hub: Check that hubs are configured correctly
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 24 Jul 2012 15:35:07 +0000 (16:35 +0100)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Wed, 1 Aug 2012 11:28:51 +0000 (12:28 +0100)
commit81017645e45bcb0b4d985e900c501f92f2c6fb60
tree11cfed6391e3506dc0749a5ec95511f436230283
parent90d87a33c700e0634bc4343fa7a034f909662254
hub: Check that hubs are configured correctly

Checks can be performed to make sure that hubs have at least one NIC and
one host device, warning the user if this is not the case.
Configurations which do not meet this rule tend to be broken but just
emit a warning.  This patch preserves compatibility with the checks
performed by net core on vlans.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
net.c
net/hub.c
net/hub.h