* [Qemu-devel] [PULL for-1.7 0/1] Net patches
@ 2013-11-15 16:13 Stefan Hajnoczi
2013-11-15 16:13 ` [Qemu-devel] [PULL 1/1] smc91c111: Fix receive starvation Stefan Hajnoczi
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hajnoczi @ 2013-11-15 16:13 UTC (permalink / raw)
To: qemu-devel; +Cc: Stefan Hajnoczi, Anthony Liguori
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(+)
--
1.8.3.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Qemu-devel] [PULL 1/1] smc91c111: Fix receive starvation
2013-11-15 16:13 [Qemu-devel] [PULL for-1.7 0/1] Net patches Stefan Hajnoczi
@ 2013-11-15 16:13 ` Stefan Hajnoczi
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Hajnoczi @ 2013-11-15 16:13 UTC (permalink / raw)
To: qemu-devel; +Cc: Sebastian Huber, Stefan Hajnoczi, Anthony Liguori
From: Sebastian Huber <sebastian.huber@embedded-brains.de>
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 <sebastian.huber@embedded-brains.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-15 16:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15 16:13 [Qemu-devel] [PULL for-1.7 0/1] Net patches Stefan Hajnoczi
2013-11-15 16:13 ` [Qemu-devel] [PULL 1/1] smc91c111: Fix receive starvation Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).