Skip to content

Commit 7db8e0c

Browse files
koueiabedavem330
authored andcommitted
sh_eth: Fix cache invalidation omission of receive buffer
Signed-off-by: Kouei Abe <[email protected]> Signed-off-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d3ab3ff commit 7db8e0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/renesas/sh_eth.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,9 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota)
13421342
mdp->rx_skbuff[entry] = NULL;
13431343
if (mdp->cd->rpadir)
13441344
skb_reserve(skb, NET_IP_ALIGN);
1345+
dma_sync_single_for_cpu(&ndev->dev, rxdesc->addr,
1346+
mdp->rx_buf_sz,
1347+
DMA_FROM_DEVICE);
13451348
skb_put(skb, pkt_len);
13461349
skb->protocol = eth_type_trans(skb, ndev);
13471350
netif_rx(skb);

0 commit comments

Comments
 (0)