Commit 217de5aa authored by Dmitry Kravkov's avatar Dmitry Kravkov Committed by David S. Miller

bnx2x: use L1_CACHE_BYTES instead of magic number

Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4bca60f4
...@@ -358,7 +358,7 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp, ...@@ -358,7 +358,7 @@ static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp,
#endif #endif
prefetch(skb); prefetch(skb);
prefetch(((char *)(skb)) + 128); prefetch(((char *)(skb)) + L1_CACHE_BYTES);
#ifdef BNX2X_STOP_ON_ERROR #ifdef BNX2X_STOP_ON_ERROR
if (pad + len > bp->rx_buf_size) { if (pad + len > bp->rx_buf_size) {
...@@ -561,7 +561,7 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget) ...@@ -561,7 +561,7 @@ int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
dma_unmap_addr(rx_buf, mapping), dma_unmap_addr(rx_buf, mapping),
pad + RX_COPY_THRESH, pad + RX_COPY_THRESH,
DMA_FROM_DEVICE); DMA_FROM_DEVICE);
prefetch(((char *)(skb)) + 128); prefetch(((char *)(skb)) + L1_CACHE_BYTES);
/* is this an error packet? */ /* is this an error packet? */
if (unlikely(cqe_fp_flags & ETH_RX_ERROR_FALGS)) { if (unlikely(cqe_fp_flags & ETH_RX_ERROR_FALGS)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment