summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/rx.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-01-29 23:33:15 +0000
committerBen Hutchings <bhutchings@solarflare.com>2013-03-07 20:22:10 +0000
commit5036b7c7b9137bd084f28438396432348f20e0bc (patch)
tree9b63db0887f10d86027a7a2a34e52a22f1250507 /drivers/net/ethernet/sfc/rx.c
parentb184f16b7feb9ede7d658ee6f2c77434d580d764 (diff)
downloadlinux-5036b7c7b9137bd084f28438396432348f20e0bc.tar.gz
linux-5036b7c7b9137bd084f28438396432348f20e0bc.tar.bz2
linux-5036b7c7b9137bd084f28438396432348f20e0bc.zip
sfc: Explicitly prefetch RX hash prefix, not just Ethernet heade
Currently we prefetch from the Ethernet header, but we will also read the hash prefix. In practice they should be in the same cache line and this won't hurt, but it is still pointless to add on the hash prefix size. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/rx.c')
-rw-r--r--drivers/net/ethernet/sfc/rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/rx.c b/drivers/net/ethernet/sfc/rx.c
index 23d67d1f136f..8e78a2fe7364 100644
--- a/drivers/net/ethernet/sfc/rx.c
+++ b/drivers/net/ethernet/sfc/rx.c
@@ -458,7 +458,7 @@ void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index,
/* Prefetch nice and early so data will (hopefully) be in cache by
* the time we look at it.
*/
- prefetch(efx_rx_buf_va(rx_buf) + efx->type->rx_buffer_hash_size);
+ prefetch(efx_rx_buf_va(rx_buf));
/* Pipeline receives so that we give time for packet headers to be
* prefetched into cache.