From 48e2faf222cbf4abab7c8e4b3f44229ec98eae7f Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Fri, 20 May 2011 16:50:01 +0100 Subject: net: Warn about "-net nic" options which were ignored Diagnose the case where the user asked for a NIC via "-net nic" but the board didn't instantiate that NIC (for example where the user asked for two NICs but the board only supports one). Note that this diagnostic doesn't apply to NICs created through -device, because those are always instantiated. Signed-off-by: Peter Maydell Signed-off-by: Anthony Liguori --- net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net.h') diff --git a/net.h b/net.h index 6ceca50..5b883a9 100644 --- a/net.h +++ b/net.h @@ -133,7 +133,8 @@ struct NICInfo { char *devaddr; VLANState *vlan; VLANClientState *netdev; - int used; + int used; /* is this slot in nd_table[] being used? */ + int instantiated; /* does this NICInfo correspond to an instantiated NIC? */ int nvectors; }; -- cgit v1.1