RE: [PATCH net 1/3] dpaa_eth: reserve space for the xdp_frame under the A050385 erratum

2021-02-04 Thread Camelia Alexandra Groza
> -Original Message- > From: Maciej Fijalkowski > Sent: Thursday, February 4, 2021 10:52 > To: Camelia Alexandra Groza > Cc: k...@kernel.org; da...@davemloft.net; Madalin Bucur (OSS) > ; netdev@vger.kernel.org > Subject: Re: [PATCH net 1/3] dpaa_eth: reserve sp

Re: [PATCH net 1/3] dpaa_eth: reserve space for the xdp_frame under the A050385 erratum

2021-02-04 Thread Maciej Fijalkowski
On Tue, Feb 02, 2021 at 07:34:42PM +0200, Camelia Groza wrote: > When the erratum workaround is triggered, the newly created xdp_frame > structure is stored at the start of the newly allocated buffer. Avoid > the structure from being overwritten by explicitly reserving enough > space in the buffer

[PATCH net 1/3] dpaa_eth: reserve space for the xdp_frame under the A050385 erratum

2021-02-02 Thread Camelia Groza
When the erratum workaround is triggered, the newly created xdp_frame structure is stored at the start of the newly allocated buffer. Avoid the structure from being overwritten by explicitly reserving enough space in the buffer for storing it. Account for the fact that the structure's size might i