qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] 答复: [PATCH] net: ne2000: check ring buffer control regi


From: P J P
Subject: Re: [Qemu-devel] 答复: [PATCH] net: ne2000: check ring buffer control registers
Date: Tue, 9 Feb 2016 12:19:49 +0530 (IST)

+-- On Fri, 5 Feb 2016, yanghongke wrote --+
| I think the important issue is that we should modify ne2000_receive
| 
| > @@ -247,6 +247,7ssize_t ne2000_receive(NetClientState *nc, const uint8_t 
*buf, size_t size_)
| > -   if (index <= s->stop)
| > +   if (index < s->stop)

  That'd break the loop, instead of resetting index to s->start, when index 
reaches s->stop.

--
 - P J P
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F



reply via email to

[Prev in Thread] Current Thread [Next in Thread]