net: ep93xx_eth stops receiving packets
authorDavid S. Miller <davem@davemloft.net>
Tue, 4 May 2010 06:21:27 +0000 (23:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 May 2010 06:21:27 +0000 (23:21 -0700)
commit1827d2e943eeb5cba0662f3e6edc342d6bd65ae6
treee8e22b3eee8ae229ee323b14675beab1f5c7400a
parentd05070091849015f8c5b7d55cd75b86ebb61b3ec
net: ep93xx_eth stops receiving packets

Receiving small packet(s) in a fast pace leads to not receiving any
packets at all after some time.

After ethernet packet(s) arrived the receive descriptor is incremented
by the number of frames processed. If another packet arrives while
processing, this is processed in another call of ep93xx_rx. This
second call leads that too many receive descriptors getting released.

This fix increments, even in these case, the right number of processed
receive descriptors.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ep93xx_eth.c