projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bca60f
)
bnx2x: use L1_CACHE_BYTES instead of magic number
author
Dmitry Kravkov
<
[email protected]
>
Wed, 6 Oct 2010 03:31:20 +0000
(
03:31
+0000)
committer
David S. Miller
<
[email protected]
>
Wed, 6 Oct 2010 21:10:39 +0000
(14:10 -0700)
Signed-off-by: Dmitry Kravkov <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_cmn.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_cmn.c
b/drivers/net/bnx2x/bnx2x_cmn.c
index 7ee9af020ed60f745948ffdff4b7199920161fe1..da46309a855c65c4e28d7d1b76f8639e24435fe1 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_cmn.c
+++ b/
drivers/net/bnx2x/bnx2x_cmn.c
@@
-358,7
+358,7
@@
static void bnx2x_tpa_stop(struct bnx2x *bp, struct bnx2x_fastpath *fp,
#endif
prefetch(skb);
- prefetch(((char *)(skb)) +
128
);
+ prefetch(((char *)(skb)) +
L1_CACHE_BYTES
);
#ifdef BNX2X_STOP_ON_ERROR
if (pad + len > bp->rx_buf_size) {
@@
-561,7
+561,7
@@
int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
dma_unmap_addr(rx_buf, mapping),
pad + RX_COPY_THRESH,
DMA_FROM_DEVICE);
- prefetch(((char *)(skb)) +
128
);
+ prefetch(((char *)(skb)) +
L1_CACHE_BYTES
);
/* is this an error packet? */
if (unlikely(cqe_fp_flags & ETH_RX_ERROR_FALGS)) {