aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>2009-05-24 23:53:40 +0000
committerDavid S. Miller <davem@davemloft.net>2009-05-25 22:49:55 -0700
commit862df49750e7ca9369c04d8d8105b3cc5d976e0d (patch)
tree922b5065c88b01ba6aa7b7edbd9c228c2140ae36 /drivers
parent0029d64af5d72049e2170e4609fa83bd1f3f07cd (diff)
downloadmrst-s0i3-test-862df49750e7ca9369c04d8d8105b3cc5d976e0d.tar.gz
mrst-s0i3-test-862df49750e7ca9369c04d8d8105b3cc5d976e0d.tar.xz
mrst-s0i3-test-862df49750e7ca9369c04d8d8105b3cc5d976e0d.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sh_eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index eb768357c78..728c4196830 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -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. */