mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 11:56:43 +07:00
bnx2x: use L1_CACHE_BYTES instead of magic number
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4bca60f44b
commit
217de5aaed
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user