aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2x/bnx2x_cmn.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/bnx2x/bnx2x_cmn.h b/drivers/net/bnx2x/bnx2x_cmn.h
index 595d4cdada3e..83d7d1bb7b12 100644
--- a/drivers/net/bnx2x/bnx2x_cmn.h
+++ b/drivers/net/bnx2x/bnx2x_cmn.h
@@ -936,16 +936,11 @@ static inline int bnx2x_alloc_rx_skb(struct bnx2x *bp,
936static inline void bnx2x_reuse_rx_skb(struct bnx2x_fastpath *fp, 936static inline void bnx2x_reuse_rx_skb(struct bnx2x_fastpath *fp,
937 u16 cons, u16 prod) 937 u16 cons, u16 prod)
938{ 938{
939 struct bnx2x *bp = fp->bp;
940 struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons]; 939 struct sw_rx_bd *cons_rx_buf = &fp->rx_buf_ring[cons];
941 struct sw_rx_bd *prod_rx_buf = &fp->rx_buf_ring[prod]; 940 struct sw_rx_bd *prod_rx_buf = &fp->rx_buf_ring[prod];
942 struct eth_rx_bd *cons_bd = &fp->rx_desc_ring[cons]; 941 struct eth_rx_bd *cons_bd = &fp->rx_desc_ring[cons];
943 struct eth_rx_bd *prod_bd = &fp->rx_desc_ring[prod]; 942 struct eth_rx_bd *prod_bd = &fp->rx_desc_ring[prod];
944 943
945 dma_sync_single_for_device(&bp->pdev->dev,
946 dma_unmap_addr(cons_rx_buf, mapping),
947 RX_COPY_THRESH, DMA_FROM_DEVICE);
948
949 dma_unmap_addr_set(prod_rx_buf, mapping, 944 dma_unmap_addr_set(prod_rx_buf, mapping,
950 dma_unmap_addr(cons_rx_buf, mapping)); 945 dma_unmap_addr(cons_rx_buf, mapping));
951 prod_rx_buf->skb = cons_rx_buf->skb; 946 prod_rx_buf->skb = cons_rx_buf->skb;