[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] net: purge queued packets in tap_cleanup()
From: |
Mark McLoughlin |
Subject: |
[Qemu-devel] [PATCH 2/8] net: purge queued packets in tap_cleanup() |
Date: |
Thu, 18 Jun 2009 18:21:30 +0100 |
If tap has any packets queued at host_net_remove time, it needs to purge
them in order to prevent a sent callback being invoked for it.
Signed-off-by: Mark McLoughlin <address@hidden>
---
net.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net.c b/net.c
index 0753a7c..91c08bd 100644
--- a/net.c
+++ b/net.c
@@ -1128,6 +1128,8 @@ static void tap_cleanup(VLANClientState *vc)
{
TAPState *s = vc->opaque;
+ qemu_purge_queued_packets(vc);
+
if (s->down_script[0])
launch_script(s->down_script, s->down_script_arg, s->fd);
--
1.6.0.6
- [Qemu-devel] [PATCH 0/8] TUNSETSNDBUF - pushback to help UDP tx, Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 1/8] net: add qemu_purge_queued_packets(), Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 2/8] net: purge queued packets in tap_cleanup(),
Mark McLoughlin <=
- [Qemu-devel] [PATCH 3/8] net: add tap_read_poll() helper, Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 4/8] net: handle EAGAIN from tapfd write(), Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 5/8] net: return TAPState from net_tap_init(), Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 6/8] net: add '-net tap,sndbuf=nbytes', Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 7/8] net: add packet length to NetPacketSent callback, Mark McLoughlin, 2009/06/18
- [Qemu-devel] [PATCH 8/8] virtio-net: implement async packet sending, Mark McLoughlin, 2009/06/18