net: sh_eth: fix receive desciptor loop
Fix the problem that this driver not update rxdesc in sh_eth_rx. Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0029d64af5
commit
862df49750
@@ -536,6 +536,7 @@ static int sh_eth_rx(struct net_device *ndev)
|
|||||||
}
|
}
|
||||||
rxdesc->status |= cpu_to_edmac(mdp, RD_RACT);
|
rxdesc->status |= cpu_to_edmac(mdp, RD_RACT);
|
||||||
entry = (++mdp->cur_rx) % RX_RING_SIZE;
|
entry = (++mdp->cur_rx) % RX_RING_SIZE;
|
||||||
|
rxdesc = &mdp->rx_ring[entry];
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Refill the Rx ring buffers. */
|
/* Refill the Rx ring buffers. */
|
||||||
|
Reference in New Issue
Block a user