mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
qemu: dynamic nic info index allocation (Marcelo Tosatti)
Dynamically allocate nic info index, so to reuse indexes when devices are removed. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6595 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
7d5aca9ee6
commit
7697079b73
2 changed files with 16 additions and 3 deletions
1
net.h
1
net.h
|
@ -65,6 +65,7 @@ struct NICInfo {
|
|||
const char *name;
|
||||
VLANState *vlan;
|
||||
void *private;
|
||||
int used;
|
||||
};
|
||||
|
||||
extern int nb_nics;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue