net: sh_eth: fix receive desciptor loop
authorYoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Sun, 24 May 2009 23:53:40 +0000 (23:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2009 05:49:55 +0000 (22:49 -0700)
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>
drivers/net/sh_eth.c

index eb768357c78d44777192cdfb4aad0bb1ed5d0c6f..728c4196830ac7166f6251991a478f4bbc2de74b 100644 (file)
@@ -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. */