diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-08 19:58:23 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-15 09:32:00 -0500 |
commit | 5610c3aaf4196cf714fb9cb57118187963550d1c (patch) | |
tree | 815a42676a271d3f1e7ab53ced3944c3ce87f32f /net.h | |
parent | dea7b3b95a0e6b88e0647e7afc8b6a7b5675fbb1 (diff) | |
download | qemu-5610c3aaf4196cf714fb9cb57118187963550d1c.zip qemu-5610c3aaf4196cf714fb9cb57118187963550d1c.tar.gz qemu-5610c3aaf4196cf714fb9cb57118187963550d1c.tar.bz2 |
net: use qtailq for vlan and client lists
Patchworks-ID: 35507
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.h')
-rw-r--r-- | net.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -26,7 +26,7 @@ struct VLANClientState { LinkStatusChanged *link_status_changed; int link_down; void *opaque; - struct VLANClientState *next; + QTAILQ_ENTRY(VLANClientState) next; struct VLANState *vlan; char *model; char *name; @@ -47,8 +47,8 @@ struct VLANPacket { struct VLANState { int id; - VLANClientState *first_client; - struct VLANState *next; + QTAILQ_HEAD(, VLANClientState) clients; + QTAILQ_ENTRY(VLANState) next; unsigned int nb_guest_devs, nb_host_devs; QTAILQ_HEAD(send_queue, VLANPacket) send_queue; int delivering; |