Re: [PATCH net] eth: fbnic: Correct packet header prefetch

From: Björn Töpel

Date: Tue Oct 20 2026 - 15:06:58 EST


Dimitri Daskalakis <dimitri.daskalakis1@xxxxxxxxx> writes:

> From: Dimitri Daskalakis <daskald@xxxxxxxx>
>
> The existing call to net_prefetch() fetched a stale address. The data
> pointer is not initialized until after the call to xdp_prepare_buff().
> Thus, making the prefetch ineffective.
>
> Open code the address calcuation to give the prefetch as much time
> as possible.
>
> This was found by manual code inspection. No issues have been observed
> from this.
>
> Fixes: 9064ab485f04 ("eth: fbnic: Prefetch packet headers on Rx")
> Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> Signed-off-by: Dimitri Daskalakis <daskald@xxxxxxxx>

Reviewed-by: Björn Töpel <bjorn@xxxxxxxxxx>