]> git.ipfire.org Git - thirdparty/qemu.git/commit
e1000: flush queue whenever can_receive can go from false to true
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Aug 2012 14:45:56 +0000 (16:45 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 12 Oct 2012 02:44:18 +0000 (21:44 -0500)
commit7575a6d2f2747f5d6ef263ad002a731402853fa6
tree8399e7cf778bd68c7ee311ce2749e3ffb3146880
parent8e9fdc4a8818161f102457a4358fb5f617b61ac2
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>
(cherry picked from commit e8b4c680b41bd960ecccd9ff076b7b058e0afcd4)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/e1000.c