diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2012-07-24 16:35:18 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-08-01 13:32:11 +0100 |
commit | 1bf1bdd85f4e7f50015b05ad513393d2f18d1a54 (patch) | |
tree | 8c56fb17777e915649dafdd3142c45c0aa5be015 | |
parent | 10ae9d45e543d318dbb9ae9c4a1f09c33cd87440 (diff) | |
download | slirp-1bf1bdd85f4e7f50015b05ad513393d2f18d1a54.zip slirp-1bf1bdd85f4e7f50015b05ad513393d2f18d1a54.tar.gz slirp-1bf1bdd85f4e7f50015b05ad513393d2f18d1a54.tar.bz2 |
net: determine if packets can be sent before net queue deliver packets
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
-rw-r--r-- | if.c | 5 | ||||
-rw-r--r-- | libslirp.h | 1 |
2 files changed, 0 insertions, 6 deletions
@@ -173,11 +173,6 @@ void if_start(Slirp *slirp) } while (ifm_next) { - /* check if we can really output */ - if (!slirp_can_output(slirp->opaque)) { - break; - } - ifm = ifm_next; from_batchq = next_from_batchq; @@ -25,7 +25,6 @@ void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds, void slirp_input(Slirp *slirp, const uint8_t *pkt, int pkt_len); /* you must provide the following functions: */ -int slirp_can_output(void *opaque); void slirp_output(void *opaque, const uint8_t *pkt, int pkt_len); int slirp_add_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr, |