[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191210214014.GV20426@zorba>
Date: Tue, 10 Dec 2019 21:40:17 +0000
From: "Daniel Walker (danielwa)" <danielwa@...co.com>
To: Greg KH <gregkh@...uxfoundation.org>
CC: "Aviraj Cj (acj)" <acj@...co.com>,
"peppe.cavallaro@...com" <peppe.cavallaro@...com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"xe-linux-external(mailer list)" <xe-linux-external@...co.com>
Subject: Re: [PATCH 1/2] net: stmmac: use correct DMA buffer size in the RX
descriptor
On Tue, Dec 10, 2019 at 09:55:42PM +0100, Greg KH wrote:
> On Tue, Dec 10, 2019 at 09:06:58AM -0800, Aviraj CJ wrote:
> > We always program the maximum DMA buffer size into the receive descriptor,
> > although the allocated size may be less. E.g. with the default MTU size
> > we allocate only 1536 bytes. If somebody sends us a bigger frame, then
> > memory may get corrupted.
> >
> > Program DMA using exact buffer sizes.
> >
> > [Adopted based on upstream commit c13a936f46e3321ad2426443296571fab2feda44
> > ("net: stmmac: use correct DMA buffer size in the RX descriptor")
> > by Aaro Koskinen <aaro.koskinen@...ia.com> ]
>
> Adopted to what?
>
> What is this patch for, it looks just like the commit you reference
> here.
>
> totally confused,
We're using the patches on the v4.4 -stable branch. It doesn't have these patches and
the backport had rejects.
Daniel
Powered by blists - more mailing lists