summaryrefslogtreecommitdiffstats
path: root/include/net/net.h
diff options
context:
space:
mode:
authorJason Wang2013-01-30 12:12:24 +0100
committerAnthony Liguori2013-02-01 18:03:01 +0100
commit948ecf219c032e3483b35ba4e162e5eee17d8b77 (patch)
tree610f53d9ed92e5154057a4040a44d3d05c971020 /include/net/net.h
parentnet: introduce qemu_get_nic() (diff)
downloadqemu-948ecf219c032e3483b35ba4e162e5eee17d8b77.tar.gz
qemu-948ecf219c032e3483b35ba4e162e5eee17d8b77.tar.xz
qemu-948ecf219c032e3483b35ba4e162e5eee17d8b77.zip
net: intorduce qemu_del_nic()
To support multiqueue nic, this patch separate the nic destructor from qemu_del_net_client() to a new helper qemu_del_nic() since the mapping bettween NiCState and NetClientState were not 1:1 in multiqueue. The following patches would refactor this function to support multiqueue nic. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/net/net.h')
-rw-r--r--include/net/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h
index 96e05c4117..f0d1aa2117 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -77,6 +77,7 @@ NICState *qemu_new_nic(NetClientInfo *info,
const char *model,
const char *name,
void *opaque);
+void qemu_del_nic(NICState *nic);
NetClientState *qemu_get_queue(NICState *nic);
NICState *qemu_get_nic(NetClientState *nc);
void *qemu_get_nic_opaque(NetClientState *nc);