summary refs log tree commit diff stats
path: root/net/queue.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-08-09 16:45:56 +0200
committerStefan Hajnoczi <stefanha@gmail.com>2012-09-14 08:40:31 +0100
commite8b4c680b41bd960ecccd9ff076b7b058e0afcd4 (patch)
tree6ab1aca5201c3b0bab967c0d40829bd5a4bae386 /net/queue.c
parent987a9b4800003567b1a47a379255e886a77d57ea (diff)
downloadfocaccia-qemu-e8b4c680b41bd960ecccd9ff076b7b058e0afcd4.tar.gz
focaccia-qemu-e8b4c680b41bd960ecccd9ff076b7b058e0afcd4.zip
e1000: flush queue whenever can_receive can go from false to true
When the guests replenish the receive ring buffer, the network device
should flush its queue of pending packets.  This is done with
qemu_flush_queued_packets.

e1000's can_receive can go from false to true when RCTL or RDT are
modified.

Reported-by: Luigi Rizzo <rizzo@iet.unipi.it>
Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Cc: Jan Kiszka <jan.kiszka@siemens.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amos Kong <akong@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'net/queue.c')
0 files changed, 0 insertions, 0 deletions