Avoid pcnet dm packet loss / corruption.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-02-25 12:27:53 +01:00
1 parent f79d0e5aeb
commit 73f56b3d57
1 file changed
+4
+4
View File
@@ -376,6 +376,10 @@ static int pcnet_can_receive(void *opaque)
if (s->recv_pos > 0)
return 0;
pcnet_rdte_poll(s);
if (!(CSR_CRST(s) & 0x8000)) {
return 0;
}
return sizeof(s->buffer)-16;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.