* [PATCH net] gve: DQO: Remove incorrect prefetch
@ 2021-07-02 3:13 Bailey Forrest
2021-07-02 19:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Bailey Forrest @ 2021-07-02 3:13 UTC (permalink / raw)
To: Bailey Forrest, David S . Miller, Jakub Kicinski; +Cc: netdev
The prefetch is incorrectly using the dma address instead of the virtual
address.
It's supposed to be:
prefetch((char *)buf_state->page_info.page_address +
buf_state->page_info.page_offset)
However, after correcting this mistake, there is no evidence of
performance improvement.
Fixes: 9b8dd5e5ea48 ("gve: DQO: Add RX path")
Signed-off-by: Bailey Forrest <bcf@google.com>
---
drivers/net/ethernet/google/gve/gve_rx_dqo.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/net/ethernet/google/gve/gve_rx_dqo.c b/drivers/net/ethernet/google/gve/gve_rx_dqo.c
index 77bb8227f89b..8500621b2cd4 100644
--- a/drivers/net/ethernet/google/gve/gve_rx_dqo.c
+++ b/drivers/net/ethernet/google/gve/gve_rx_dqo.c
@@ -566,13 +566,6 @@ static int gve_rx_dqo(struct napi_struct *napi, struct gve_rx_ring *rx,
return 0;
}
- /* Prefetch the payload header. */
- prefetch((char *)buf_state->addr + buf_state->page_info.page_offset);
-#if L1_CACHE_BYTES < 128
- prefetch((char *)buf_state->addr + buf_state->page_info.page_offset +
- L1_CACHE_BYTES);
-#endif
-
if (eop && buf_len <= priv->rx_copybreak) {
rx->skb_head = gve_rx_copy(priv->dev, napi,
&buf_state->page_info, buf_len, 0);
--
2.32.0.93.g670b81a890-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] gve: DQO: Remove incorrect prefetch
2021-07-02 3:13 [PATCH net] gve: DQO: Remove incorrect prefetch Bailey Forrest
@ 2021-07-02 19:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-07-02 19:10 UTC (permalink / raw)
To: Bailey Forrest; +Cc: davem, kuba, netdev
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Thu, 1 Jul 2021 20:13:36 -0700 you wrote:
> The prefetch is incorrectly using the dma address instead of the virtual
> address.
>
> It's supposed to be:
> prefetch((char *)buf_state->page_info.page_address +
> buf_state->page_info.page_offset)
>
> [...]
Here is the summary with links:
- [net] gve: DQO: Remove incorrect prefetch
https://git.kernel.org/netdev/net/c/1bfa4d0cb5ad
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-07-02 19:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 3:13 [PATCH net] gve: DQO: Remove incorrect prefetch Bailey Forrest
2021-07-02 19:10 ` 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.