* [PATCH net-next] stmmac: prefetch right address
@ 2021-06-09 17:23 Matteo Croce
2021-06-09 22:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Matteo Croce @ 2021-06-09 17:23 UTC (permalink / raw)
To: netdev
Cc: linux-kernel, Ong Boon Leong, Giuseppe Cavallaro,
Alexandre Torgue, Jose Abreu, David S. Miller, Jakub Kicinski,
Emil Renner Berthing
From: Matteo Croce <mcroce@microsoft.com>
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>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 0a266fa0af7e..30b411762a9c 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -5129,7 +5129,7 @@ static int stmmac_rx(struct stmmac_priv *priv, int limit, u32 queue)
/* 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));
--
2.31.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] stmmac: prefetch right address
2021-06-09 17:23 [PATCH net-next] stmmac: prefetch right address Matteo Croce
@ 2021-06-09 22:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-09 22:50 UTC (permalink / raw)
To: Matteo Croce
Cc: netdev, linux-kernel, boon.leong.ong, peppe.cavallaro,
alexandre.torgue, joabreu, davem, kuba, kernel
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Wed, 9 Jun 2021 19:23:03 +0200 you wrote:
> From: Matteo Croce <mcroce@microsoft.com>
>
> 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>
>
> [...]
Here is the summary with links:
- [net-next] stmmac: prefetch right address
https://git.kernel.org/netdev/net-next/c/4744bf072b46
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-09 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-09 17:23 [PATCH net-next] stmmac: prefetch right address Matteo Croce
2021-06-09 22:50 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.