Skip to contentSkip to conversation

Net patches

GIT PULL Stefan Hajnoczi 1 participant 2 messages Nov 15, 2013

lore
Share & tools
lore
#0 lore raw

A fix for the smc91c111 NIC.

The following changes since commit 5c5432e7d630592ddcc1876ac8a1505f8f14ef15:

Merge remote-tracking branch 'luiz/queue/qmp' into staging (2013-11-13 11:49:27 -0800)

are available in the git repository at:

git://github.com/stefanha/qemu.git net

for you to fetch changes up to 8b7acc79b9adb4dda6cc867b90e3a1e873f4f7e8:

smc91c111: Fix receive starvation (2013-11-15 13:25:39 +0100)

----------------------------------------------------------------
Sebastian Huber (1):
smc91c111: Fix receive starvation

 hw/net/smc91c111.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.8.3.1
#1 lore raw

[Qemu-devel] [PULL 1/1] smc91c111: Fix receive starvation

From: Sebastian Huber <[email protected]>

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.

---
 hw/net/smc91c111.c | 1 +
 1 file changed, 1 insertion(+)
hw/net/smc91c111.c +1 -0
index f5963e2..a8e29b3 100644
@@ -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.  */
Signature · 1 line
1.8.3.1