summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonglei2014-10-07 10:00:21 +0200
committerGerd Hoffmann2014-10-15 09:52:54 +0200
commit45e8a9e123ccf06f1dce2744676ae64382e0a273 (patch)
tree7dee352c0fc64bab286e063d66794b54b79f2e4b
parentusb-net: add bootindex to qom property (diff)
downloadqemu-45e8a9e123ccf06f1dce2744676ae64382e0a273.tar.gz
qemu-45e8a9e123ccf06f1dce2744676ae64382e0a273.tar.xz
qemu-45e8a9e123ccf06f1dce2744676ae64382e0a273.zip
net: remove bootindex property from qdev to qom
Remove bootindex form qdev property to qom, things will continue to work just fine, and we can use qom features which are not supported by qdev property. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--include/net/net.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/net.h b/include/net/net.h
index ed594f9bdb..008d610046 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -36,8 +36,7 @@ typedef struct NICConf {
#define DEFINE_NIC_PROPERTIES(_state, _conf) \
DEFINE_PROP_MACADDR("mac", _state, _conf.macaddr), \
DEFINE_PROP_VLAN("vlan", _state, _conf.peers), \
- DEFINE_PROP_NETDEV("netdev", _state, _conf.peers), \
- DEFINE_PROP_INT32("bootindex", _state, _conf.bootindex, -1)
+ DEFINE_PROP_NETDEV("netdev", _state, _conf.peers)
/* Net clients */