net: add qemu_purge_queued_packets()
authorMark McLoughlin <markmc@redhat.com>
Thu, 18 Jun 2009 17:21:29 +0000 (18:21 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:30 +0000 (10:15 -0500)
commit8bf6b9530cf7592d8847f95079feba6bc4aa3a38
treea04068a9130c6df2bc6a43367737cd38e399ed20
parente42e32ffea91d9e6b043926c65dd2d30ad1feed1
net: add qemu_purge_queued_packets()

If net client sends packets asynchronously, it needs to purge its queued
packets in cleanup() so as to prevent sent callbacks being invoked with
a freed client.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c
net.h