« Previous | Next » 

Revision 190563f9

ID190563f9a90c9df8ad32fc7f3e4b166deda949a6

Added by Stefan Hajnoczi over 11 years ago

net: fix usbnet_receive() packet drops

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 rxbuf handling.

Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences