]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit5176da7e5318669220e4d2fa856223054a3efc9f
tree849303631cc7df172a6ce8c89d8ebfbf18ec42fc
parentbd0914104c61a852baf469b2d807322e5d0459b4
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