Received: from eggs.gnu.org ([2001:4830:134:3::10]:39318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxP9S-0008PO-R1 for qemu-devel@nongnu.org; Thu, 20 Oct 2016 22:01:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxP9O-000074-Cq for qemu-devel@nongnu.org; Thu, 20 Oct 2016 22:01:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36182) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bxP9O-000067-7W for qemu-devel@nongnu.org; Thu, 20 Oct 2016 22:01:38 -0400 References: <1476657307-26165-1-git-send-email-mail@kevin-wolf.de> <20161018142705.GK4706@noname.str.redhat.com> From: Jason Wang Message-ID: Date: Fri, 21 Oct 2016 10:01:30 +0800 MIME-Version: 1.0 In-Reply-To: <20161018142705.GK4706@noname.str.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] e1000e: Don't zero out buffer address in rx descriptor List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , Dmitry Fleytman Cc: Kevin Wolf , qemu-devel@nongnu.org On 2016=E5=B9=B410=E6=9C=8818=E6=97=A5 22:27, Kevin Wolf wrote: > Am 18.10.2016 um 16:10 hat Dmitry Fleytman geschrieben: >> > On 17 Oct 2016, at 01:35 AM, Kevin Wolf wro= te: >> > >> > The e1000e emulation zeroes out any used rx descriptor and then = writes a >> > completely newly constructed value there. By doing this, it does= n't only >> > update the write-back area of the descriptors (as it's supposed = to do), >> > but it also clears the buffer address, which real hardware doesn= 't do. >> > >> > The spec explicitly mentions in chapter 7.1.8 that it is valid f= or a >> > driver to reuse a descriptor and only update the status field wh= ile >> > doing so, i.e. reusing the old buffer address: >> > >> > If software statically allocates buffers, and uses memory rea= d to >> > check for completed descriptors, it simply has to zero the st= atus >> > byte in the descriptor to make it ready for reuse by hardware= . >> > >> > This patch fixes the behaviour to leave the buffer address in >> > descriptors unchanged even after the descriptor has been used. >> > >> > >> >Hi Kevin, >> > >> >Reviewed-by: Dmitry Fleytman >> > >> >Thanks for catching this! > Thanks, Dmitry! > > I assume that your R-b implies that you don't send a pull request > yourself. If so, what's the process for getting the patch merged? Is > Jason going to pick it up normally or should I send a pull request of m= y > own? > I've picked this in my tree. Thanks