Re: [Qemu-devel] [PATCH] fix unbounded qemu NetQueue

2013-01-17 Thread Luigi Rizzo
On Thu, Jan 17, 2013 at 2:21 AM, Stefan Hajnoczi wrote: > On Thu, Jan 17, 2013 at 07:07:11AM +0100, Luigi Rizzo wrote: > > The comment at the beginning of net/queue.c says that packets that > > cannot be sent by qemu_net_queue_send() should not be enqueued > > unless a callback is set. > > > > Th

Re: [Qemu-devel] [PATCH] fix unbounded qemu NetQueue

2013-01-17 Thread Stefan Hajnoczi
On Thu, Jan 17, 2013 at 07:07:11AM +0100, Luigi Rizzo wrote: > The comment at the beginning of net/queue.c says that packets that > cannot be sent by qemu_net_queue_send() should not be enqueued > unless a callback is set. > > This patch implements this behaviour, that prevents a queue to grow > u

[Qemu-devel] [PATCH] fix unbounded qemu NetQueue

2013-01-16 Thread Luigi Rizzo
The comment at the beginning of net/queue.c says that packets that cannot be sent by qemu_net_queue_send() should not be enqueued unless a callback is set. This patch implements this behaviour, that prevents a queue to grow unbounded (e.g. when a network backend is not connected). Also for good m