Skip to content

Commit

Permalink
net: sh_eth: fix receive desciptor loop
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yoshihiro Shimoda authored and David S. Miller committed May 26, 2009
1 parent 0029d64 commit 862df49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/sh_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,7 @@ static int sh_eth_rx(struct net_device *ndev)
}
rxdesc->status |= cpu_to_edmac(mdp, RD_RACT);
entry = (++mdp->cur_rx) % RX_RING_SIZE;
rxdesc = &mdp->rx_ring[entry];
}

/* Refill the Rx ring buffers. */
Expand Down

0 comments on commit 862df49

Please sign in to comment.