aboutsummaryrefslogtreecommitdiff
path: root/net/hub.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-08-24 13:37:29 +0100
committerStefan Hajnoczi <stefanha@gmail.com>2012-09-14 08:40:32 +0100
commit190563f9a90c9df8ad32fc7f3e4b166deda949a6 (patch)
treeca63d94cd6b874adb7cf79b4070fab496a6f7c0b /net/hub.c
parentf237ddbb89142c6948a2257c459e49dee7500a7c (diff)
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 <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'net/hub.c')
0 files changed, 0 insertions, 0 deletions