qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT b9adce2] net: purge queued packets in tap_cleanup


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT b9adce2] net: purge queued packets in tap_cleanup()
Date: Mon, 22 Jun 2009 15:51:12 -0000

From: Mark McLoughlin <address@hidden>

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>
Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/net.c b/net.c
index cea545e..eb26cd4 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);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]