From: aurel32 Date: Fri, 28 Mar 2008 22:57:48 +0000 (+0000) Subject: Revert "Fix ne2000_can_receive() function". X-Git-Tag: xen-3.3.0-rc1~194^2^2~324 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e89f00e6a3fcba77ce5ffd616a2ca93de5c8fcab;p=qemu-xen-4.1-testing.git Revert "Fix ne2000_can_receive() function". When the card is stopped, it should always accept packets, and then discard them. Thanks to Paul Brook for the explanations. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4128 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/ne2000.c b/hw/ne2000.c index 6043fc325..44f30c2af 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -217,7 +217,7 @@ static int ne2000_can_receive(void *opaque) NE2000State *s = opaque; if (s->cmd & E8390_STOP) - return 0; + return 1; return !ne2000_buffer_full(s); }