Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e47851f1 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

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: default avatarStephen Hemminger <stephen@networkplumber.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58ad436f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;