[Qemu-devel] [PATCH 09/13] net: fix usbnet_receive() packet drops

2012-09-14 Thread Stefan Hajnoczi
From: Stefan Hajnoczi The USB network interface has a single buffer which the guest reads from. This patch prevents multiple calls to usbnet_receive() from clobbering the input buffer. Instead we queue packets until buffer space becomes available again. This is inspired by virtio-net and e1000

[Qemu-devel] [PATCH 09/13] net: fix usbnet_receive() packet drops

2012-09-14 Thread Stefan Hajnoczi
From: Stefan Hajnoczi The USB network interface has a single buffer which the guest reads from. This patch prevents multiple calls to usbnet_receive() from clobbering the input buffer. Instead we queue packets until buffer space becomes available again. This is inspired by virtio-net and e1000