aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-11-25 18:49:29 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-03 09:41:34 -0600
commit68da46eeb6cbe60b03f7afcb4e3cd1b5f14cc259 (patch)
tree9055cb348d473d380a5d082a7056abb6c7f1e321 /net.c
parent658788c5609ccd745bb800ed156bf6f9a19398dc (diff)
downloadqemu-68da46eeb6cbe60b03f7afcb4e3cd1b5f14cc259.zip
qemu-68da46eeb6cbe60b03f7afcb4e3cd1b5f14cc259.tar.gz
qemu-68da46eeb6cbe60b03f7afcb4e3cd1b5f14cc259.tar.bz2
net: remove qemu_new_vlan_client()
... and VLANClientState::opaque and qemu_find_vlan_client(). All of these are now unused Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r--net.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/net.c b/net.c
index cca008a..d77320b 100644
--- a/net.c
+++ b/net.c
@@ -283,37 +283,6 @@ NICState *qemu_new_nic(NetClientInfo *info,
return nic;
}
-VLANClientState *qemu_new_vlan_client(net_client_type type,
- VLANState *vlan,
- VLANClientState *peer,
- const char *model,
- const char *name,
- NetCanReceive *can_receive,
- NetReceive *receive,
- NetReceive *receive_raw,
- NetReceiveIOV *receive_iov,
- NetCleanup *cleanup,
- void *opaque)
-{
- VLANClientState *ret;
- NetClientInfo info;
-
- info.type = type;
- info.size = sizeof(VLANClientState);
- info.can_receive = can_receive;
- info.receive = receive;
- info.receive_raw = receive_raw;
- info.receive_iov = receive_iov;
- info.cleanup = cleanup;
- info.link_status_changed = NULL;
-
- ret = qemu_new_net_client(&info, vlan, peer, model, name);
-
- ret->opaque = opaque;
-
- return ret;
-}
-
void qemu_del_vlan_client(VLANClientState *vc)
{
if (vc->vlan) {
@@ -337,19 +306,6 @@ void qemu_del_vlan_client(VLANClientState *vc)
qemu_free(vc);
}
-VLANClientState *qemu_find_vlan_client(VLANState *vlan, void *opaque)
-{
- VLANClientState *vc;
-
- QTAILQ_FOREACH(vc, &vlan->clients, next) {
- if (vc->opaque == opaque) {
- return vc;
- }
- }
-
- return NULL;
-}
-
VLANClientState *
qemu_find_vlan_client_by_name(Monitor *mon, int vlan_id,
const char *client_str)