ia64/xen-unstable

changeset 9021:a9f3abcc4149

Avoid pcnet dm packet loss / corruption.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Feb 25 12:27:53 2006 +0100 (2006-02-25)
parents 8b42c8aea36a
children 2303fb4682e7
files tools/ioemu/hw/pcnet.c
line diff
     1.1 --- a/tools/ioemu/hw/pcnet.c	Fri Feb 24 19:34:54 2006 +0100
     1.2 +++ b/tools/ioemu/hw/pcnet.c	Sat Feb 25 12:27:53 2006 +0100
     1.3 @@ -376,6 +376,10 @@ static int pcnet_can_receive(void *opaqu
     1.4      if (s->recv_pos > 0)
     1.5          return 0;
     1.6  
     1.7 +    pcnet_rdte_poll(s);
     1.8 +    if (!(CSR_CRST(s) & 0x8000)) {
     1.9 +        return 0;
    1.10 +    }
    1.11      return sizeof(s->buffer)-16;
    1.12  }
    1.13