]> git.baikalelectronics.ru Git - kernel.git/commit
enc28j60: Fix sporadic packet loss (corrected again)
authorBaruch Siach <baruch@tkos.co.il>
Tue, 2 Dec 2008 05:07:01 +0000 (05:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 05:16:06 +0000 (21:16 -0800)
commit9f2efd88048d02203390b84d8b214ab47e971dcb
tree849303631cc7df172a6ce8c89d8ebfbf18ec42fc
parent2d0bf74be909b7828858b66034e75cf7ced81490
enc28j60: Fix sporadic packet loss (corrected again)

Packet data read from the RX buffer the when the RSV is at the end of the RX
buffer does not warp around. This causes packet loss, as the actual data is
never read. Fix this by calculating the right packet data location.

Thanks to Shachar Shemesh for suggesting the fix.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Claudio Lanconelli <lanconelli.claudio@eptar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/enc28j60.c