mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
stmmac: prefetch right address
To support XDP, a headroom is prepended to the packet data.
Consider this offset when doing a prefetch.
Fixes: da5ec7f22a
("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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue