stmmac: prefetch right address
To support XDP, a headroom is prepended to the packet data. Consider this offset when doing a prefetch. Fixes: da5ec7f22a0f ("net: stmmac: refactor stmmac_init_rx_buffers for stmmac_reinit_rx_buffers") Signed-off-by: Matteo Croce <mcroce@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f3b5a89075
commit
4744bf072b
@ -5131,7 +5131,7 @@ read_again:
|
||||
|
||||
/* Buffer is good. Go on. */
|
||||
|
||||
prefetch(page_address(buf->page));
|
||||
prefetch(page_address(buf->page) + buf->page_offset);
|
||||
if (buf->sec_page)
|
||||
prefetch(page_address(buf->sec_page));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user