From 5610c3aaf4196cf714fb9cb57118187963550d1c Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 8 Oct 2009 19:58:23 +0100 Subject: net: use qtailq for vlan and client lists Patchworks-ID: 35507 Signed-off-by: Mark McLoughlin Signed-off-by: Anthony Liguori --- net.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net.h') diff --git a/net.h b/net.h index 164ea3d..79e9b47 100644 --- a/net.h +++ b/net.h @@ -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; -- cgit v1.1