Commit 862df497 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by David S. Miller

net: sh_eth: fix receive desciptor loop

Fix the problem that this driver not update rxdesc in sh_eth_rx.
Signed-off-by: default avatarYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: default avatarNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0029d64a
...@@ -536,6 +536,7 @@ static int sh_eth_rx(struct net_device *ndev) ...@@ -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. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment