diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-08-10 15:02:07 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-13 15:09:06 -0700 |
commit | e47851f13d3300f67ca8c7c73780d029ccaa5d74 (patch) | |
tree | 5fdfb54c162089957fa53f4b1411d1c39ac512d1 /drivers/net/ethernet/marvell/skge.c | |
parent | 58ad436fcf49810aa006016107f494c9ac9013db (diff) | |
download | op-kernel-dev-e47851f13d3300f67ca8c7c73780d029ccaa5d74.zip op-kernel-dev-e47851f13d3300f67ca8c7c73780d029ccaa5d74.tar.gz |
skge: dma_sync the whole receive buffer
The DMA sync should sync the whole receive buffer, not just
part of it. Fixes log messages dma_sync_check.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/skge.c')
-rw-r--r-- | drivers/net/ethernet/marvell/skge.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/skge.c b/drivers/net/ethernet/marvell/skge.c index 3f78336..ef94a59 100644 --- a/drivers/net/ethernet/marvell/skge.c +++ b/drivers/net/ethernet/marvell/skge.c @@ -3077,11 +3077,13 @@ static struct sk_buff *skge_rx_get(struct net_device *dev, pci_dma_sync_single_for_cpu(skge->hw->pdev, dma_unmap_addr(e, mapaddr), - len, PCI_DMA_FROMDEVICE); + dma_unmap_len(e, maplen), + PCI_DMA_FROMDEVICE); skb_copy_from_linear_data(e->skb, skb->data, len); pci_dma_sync_single_for_device(skge->hw->pdev, dma_unmap_addr(e, mapaddr), - len, PCI_DMA_FROMDEVICE); + dma_unmap_len(e, maplen), + PCI_DMA_FROMDEVICE); skge_rx_reuse(e, skge->rx_buf_size); } else { struct sk_buff *nskb; |