Received: from eggs.gnu.org ([2001:4830:134:3::10]:42810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT27a-0004CJ-Mm for qemu-devel@nongnu.org; Tue, 09 Feb 2016 01:49:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT27X-0000h3-Hl for qemu-devel@nongnu.org; Tue, 09 Feb 2016 01:49:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT27X-0000gs-Cf for qemu-devel@nongnu.org; Tue, 09 Feb 2016 01:49:55 -0500 Date: Tue, 9 Feb 2016 12:19:49 +0530 (IST) From: P J P In-Reply-To: Message-ID: References: <1454423392-7732-1-git-send-email-ppandit@redhat.com> <56B465B7.8000201@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] =?gb2312?b?tPC4tDogW1BBVENIXSBuZXQ6IG5lMjAwMDogY2hl?= =?gb2312?b?Y2sgcmluZyBidWZmZXIgY29udHJvbCByZWdpc3RlcnM=?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: yanghongke Cc: Jason Wang , QEMU Developers +-- 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