diff options
| author | Anthony Liguori | 2013-05-24 20:47:33 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2013-05-24 20:47:33 +0200 |
| commit | 4a542df0910dff2caf17d6bb76bbf3704197db42 (patch) | |
| tree | 0e59ee63f12613fdfaebc9f6fac5b3314607f046 /hw | |
| parent | Merge remote-tracking branch 'stefanha/block' into staging (diff) | |
| parent | rtl8139: flush queued packets when RxBufPtr is written (diff) | |
| download | qemu-4a542df0910dff2caf17d6bb76bbf3704197db42.tar.gz qemu-4a542df0910dff2caf17d6bb76bbf3704197db42.tar.xz qemu-4a542df0910dff2caf17d6bb76bbf3704197db42.zip | |
Merge remote-tracking branch 'stefanha/net' into staging
# By Alasdair McLeay (1) and Stefan Hajnoczi (1)
# Via Stefan Hajnoczi
* stefanha/net:
rtl8139: flush queued packets when RxBufPtr is written
net: support for bridged networking on Mac OS X
Message-id: 1369406295-20411-1-git-send-email-stefanha@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
| -rw-r--r-- | hw/net/rtl8139.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index 9369507422..7993f9f5b9 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -2575,6 +2575,9 @@ static void rtl8139_RxBufPtr_write(RTL8139State *s, uint32_t val) /* this value is off by 16 */ s->RxBufPtr = MOD2(val + 0x10, s->RxBufferSize); + /* more buffer space may be available so try to receive */ + qemu_flush_queued_packets(qemu_get_queue(s->nic)); + DPRINTF(" CAPR write: rx buffer length %d head 0x%04x read 0x%04x\n", s->RxBufferSize, s->RxBufAddr, s->RxBufPtr); } |
