From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhM2C-00070w-Bo for qemu-devel@nongnu.org; Fri, 15 Nov 2013 11:14:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhM27-0002Re-EO for qemu-devel@nongnu.org; Fri, 15 Nov 2013 11:14:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhM27-0002Pt-5i for qemu-devel@nongnu.org; Fri, 15 Nov 2013 11:14:11 -0500 From: Stefan Hajnoczi Date: Fri, 15 Nov 2013 17:13:52 +0100 Message-Id: <1384532032-19057-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1384532032-19057-1-git-send-email-stefanha@redhat.com> References: <1384532032-19057-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PULL 1/1] smc91c111: Fix receive starvation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Sebastian Huber , Stefan Hajnoczi , Anthony Liguori From: Sebastian Huber In case the smc91c111 interface signals that it cannot receive more packets the packets are queued and further reception will be disabled. In case the interface is again ready to receive packets notify the upper layer. Signed-off-by: Sebastian Huber Signed-off-by: Stefan Hajnoczi --- hw/net/smc91c111.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/smc91c111.c b/hw/net/smc91c111.c index f5963e2..a8e29b3 100644 --- a/hw/net/smc91c111.c +++ b/hw/net/smc91c111.c @@ -185,6 +185,7 @@ static void smc91c111_release_packet(smc91c111_state *s, int packet) s->allocated &= ~(1 << packet); if (s->tx_alloc == 0x80) smc91c111_tx_alloc(s); + qemu_flush_queued_packets(qemu_get_queue(s->nic)); } /* Flush the TX FIFO. */ -- 1.8.3.1