mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
gve: DQO: Remove incorrect prefetch
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: 9b8dd5e5ea
("gve: DQO: Add RX path")
Signed-off-by: Bailey Forrest <bcf@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
40fc3054b4
commit
1bfa4d0cb5
1 changed files with 0 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue