Skip to content

Commit 1bfa4d0

Browse files
baileyforrestdavem330
authored andcommitted
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: 9b8dd5e ("gve: DQO: Add RX path") Signed-off-by: Bailey Forrest <bcf@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 40fc305 commit 1bfa4d0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎drivers/net/ethernet/google/gve/gve_rx_dqo.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -566,13 +566,6 @@ static int gve_rx_dqo(struct napi_struct *napi, struct gve_rx_ring *rx,
566566
return 0;
567567
}
568568

569-
/* Prefetch the payload header. */
570-
prefetch((char *)buf_state->addr + buf_state->page_info.page_offset);
571-
#if L1_CACHE_BYTES < 128
572-
prefetch((char *)buf_state->addr + buf_state->page_info.page_offset +
573-
L1_CACHE_BYTES);
574-
#endif
575-
576569
if (eop && buf_len <= priv->rx_copybreak) {
577570
rx->skb_head = gve_rx_copy(priv->dev, napi,
578571
&buf_state->page_info, buf_len, 0);

0 commit comments

Comments
 (0)