[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 24/27] slirp: remove slirp_instances list
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 24/27] slirp: remove slirp_instances list |
Date: |
Thu, 17 Jan 2019 15:43:56 +0400 |
Now that polling is done per-instance, we don't need a global list of
slirp instances.
Signed-off-by: Marc-André Lureau <address@hidden>
---
slirp/slirp.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/slirp/slirp.c b/slirp/slirp.c
index 35630efe5db..98ff23723d9 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -48,9 +48,6 @@ static const uint8_t special_ethaddr[ETH_ALEN] = {
unsigned curtime;
-static QTAILQ_HEAD(, Slirp) slirp_instances =
- QTAILQ_HEAD_INITIALIZER(slirp_instances);
-
static struct in_addr dns_addr;
#ifndef _WIN32
static struct in6_addr dns6_addr;
@@ -333,7 +330,6 @@ Slirp *slirp_init(int restricted, bool in_enabled, struct
in_addr vnetwork,
#ifdef WITH_QEMU
slirp_state_register(slirp);
#endif
- QTAILQ_INSERT_TAIL(&slirp_instances, slirp, entry);
return slirp;
}
@@ -348,7 +344,6 @@ void slirp_cleanup(Slirp *slirp)
g_free(e);
}
- QTAILQ_REMOVE(&slirp_instances, slirp, entry);
#ifdef WITH_QEMU
slirp_state_unregister(slirp);
#endif
--
2.20.1.98.gecbdaf0899
- Re: [Qemu-devel] [PATCH 18/27] slirp: replace net/eth.h inclusion with own defines, (continued)
- [Qemu-devel] [PATCH 19/27] slirp: replace qemu qtailq with slirp own copy, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 20/27] slirp: replace remaining qemu headers dependency, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 22/27] slirp: improve send_packet() callback, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 21/27] slirp: prefer c99 types over BSD kind, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 24/27] slirp: remove slirp_instances list,
Marc-André Lureau <=
- [Qemu-devel] [PATCH 23/27] slirp: replace global polling with per-instance & notifier, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 25/27] slirp: use polling callbacks, drop glib requirement, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 26/27] slirp: pass opaque to all callbacks, Marc-André Lureau, 2019/01/17
- [Qemu-devel] [PATCH 27/27] slirp: API is extern C, Marc-André Lureau, 2019/01/17
- Re: [Qemu-devel] [PATCH 00/27] slirp: make it again a standalone project (part 2), Samuel Thibault, 2019/01/17