]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e184e611d49bfe370c1071a725e69e3a5ee161c
tree82c78d2faf8aa426f77a5cc6d497122ed95f4161
parent1096f0f25f148690fbeeca4f4bb92bcc6cf3b71e
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