net: purge queued packets in tap_cleanup()
authorMark McLoughlin <markmc@redhat.com>
Thu, 18 Jun 2009 17:21:30 +0000 (18:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:30 +0000 (10:15 -0500)
commitdb2f139041586398a0a69a9a046737ebcead1922
tree0b5ca703ebf04963a012d4704da6dc840cc6c780
parent8bf6b9530cf7592d8847f95079feba6bc4aa3a38
net: purge queued packets in tap_cleanup()

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 <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c