macb: restore wrap bit when performing underrun cleanup
authorTord Andersson <tord.andersson@endian.se>
Wed, 3 Aug 2011 22:11:47 +0000 (22:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Aug 2011 09:04:32 +0000 (02:04 -0700)
commitd3e614577198757d5854caa912e88f2d4296479b
tree82c78d2faf8aa426f77a5cc6d497122ed95f4161
parent36c35416a94f5632c3addad05217ff02c39b3b61
macb: restore wrap bit when performing underrun cleanup

When TX underrun occurs, a cleanup is performed that marks all buffers
as used. As a side effect it also clears the wrap bit in the last
buffer. This patch will restore the wrap bit.

Signed-off-by: Tord Andersson <tord.andersson@endian.se>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macb.c