Re: [Qemu-devel] [PATCH 1/3] net: invoke callback when purging queue

2014-09-04 Thread Stefan Hajnoczi
On Thu, Sep 04, 2014 at 11:39:10AM +0300, Michael S. Tsirkin wrote: > devices rely on packet callbacks eventually running, > but we violate this rule whenever we purge the queue. > To fix, invoke callbacks on all packets on purge. > Set length to 0, this way callers can detect that > this happened

Re: [Qemu-devel] [PATCH 1/3] net: invoke callback when purging queue

2014-09-04 Thread Jason Wang
On 09/04/2014 04:39 PM, Michael S. Tsirkin wrote: > devices rely on packet callbacks eventually running, > but we violate this rule whenever we purge the queue. > To fix, invoke callbacks on all packets on purge. > Set length to 0, this way callers can detect that > this happened and re-queue if ne

[Qemu-devel] [PATCH 1/3] net: invoke callback when purging queue

2014-09-04 Thread Michael S. Tsirkin
devices rely on packet callbacks eventually running, but we violate this rule whenever we purge the queue. To fix, invoke callbacks on all packets on purge. Set length to 0, this way callers can detect that this happened and re-queue if necessary. Cc: qemu-sta...@nongnu.org Cc: Jason Wang Signed-