qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] smc91c111: Fix receive starvation


From: Sebastian Huber
Subject: [Qemu-devel] [PATCH] smc91c111: Fix receive starvation
Date: Thu, 14 Nov 2013 14:53:46 +0100

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 <address@hidden>
---
 hw/net/smc91c111.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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.7.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]