]> 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)
commitcb833955dcaaa46e717e2373de878032fee651bb
tree82c78d2faf8aa426f77a5cc6d497122ed95f4161
parentd3910a8b14a42946544c6c394c56ded830534144
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