]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
r8152: Fix broken RX checksums.
authorMark Lord <mlord@pobox.com>
Sun, 30 Oct 2016 23:28:27 +0000 (19:28 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2016 00:56:13 +0000 (20:56 -0400)
commitb9a321b48af40e0606009df8aff0a8c65dfbbfd8
tree699c9bd7cb3a48ab899db46f2e2a1c020604cb8b
parent2a26d99b251b8625d27aed14e97fc10707a3a81f
r8152: Fix broken RX checksums.

The r8152 driver has been broken since (approx) 3.16.xx
when support was added for hardware RX checksums
on newer chip versions.  Symptoms include random
segfaults and silent data corruption over NFS.

The hardware checksum logig does not work on the VER_02
dongles I have here when used with a slow embedded system CPU.
Google reveals others reporting similar issues on Raspberry Pi.

So, disable hardware RX checksum support for VER_02, and fix
an obvious coding error for IPV6 checksums in the same function.

Because this bug results in silent data corruption,
it is a good candidate for back-porting to -stable >= 3.16.xx.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c