diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-04-27 08:18:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-28 12:54:36 -0400 |
commit | 214f1c87bd86f9061fedbae929bc4a7a7089ee75 (patch) | |
tree | 316a7fc6bbdd3402d7fbf13a14d5ccfcb1b3960b /drivers/net/bnx2x_main.c | |
parent | d5ffd75a27fade39ba5df3b07290c5a2c297b9bd (diff) |
bnx2x: Remove two prefetch()
1) Even on 64bit arches, sizeof(struct sk_buff) < 256
2) No need to prefetch same pointer twice.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Acked-by: Eliezer Tamir <eliezer@tamir.org.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index 613f7274654c..f706ed191f19 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -1617,7 +1617,6 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) | |||
1617 | rx_buf = &fp->rx_buf_ring[bd_cons]; | 1617 | rx_buf = &fp->rx_buf_ring[bd_cons]; |
1618 | skb = rx_buf->skb; | 1618 | skb = rx_buf->skb; |
1619 | prefetch(skb); | 1619 | prefetch(skb); |
1620 | prefetch((u8 *)skb + 256); | ||
1621 | len = le16_to_cpu(cqe->fast_path_cqe.pkt_len); | 1620 | len = le16_to_cpu(cqe->fast_path_cqe.pkt_len); |
1622 | pad = cqe->fast_path_cqe.placement_offset; | 1621 | pad = cqe->fast_path_cqe.placement_offset; |
1623 | 1622 | ||
@@ -1668,7 +1667,6 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) | |||
1668 | dma_unmap_addr(rx_buf, mapping), | 1667 | dma_unmap_addr(rx_buf, mapping), |
1669 | pad + RX_COPY_THRESH, | 1668 | pad + RX_COPY_THRESH, |
1670 | DMA_FROM_DEVICE); | 1669 | DMA_FROM_DEVICE); |
1671 | prefetch(skb); | ||
1672 | prefetch(((char *)(skb)) + 128); | 1670 | prefetch(((char *)(skb)) + 128); |
1673 | 1671 | ||
1674 | /* is this an error packet? */ | 1672 | /* is this an error packet? */ |