linux/drivers/net/ethernet/sun
Eric Dumazet 12b03558ce net: sungem: fix rx checksum support
After commit 88078d98d1 ("net: pskb_trim_rcsum() and CHECKSUM_COMPLETE
are friends"), sungem owners reported the infamous "eth0: hw csum failure"
message.

CHECKSUM_COMPLETE has in fact never worked for this driver, but this
was masked by the fact that upper stacks had to strip the FCS, and
therefore skb->ip_summed was set back to CHECKSUM_NONE before
my recent change.

Driver configures a number of bytes to skip when the chip computes
the checksum, and for some reason only half of the Ethernet header
was skipped.

Then a second problem is that we should strip the FCS by default,
unless the driver is updated to eventually support NETIF_F_RXFCS in
the future.

Finally, a driver should check if NETIF_F_RXCSUM feature is enabled
or not, so that the admin can turn off rx checksum if wanted.

Many thanks to Andreas Schwab and Mathieu Malaterre for their
help in debugging this issue.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Meelis Roos <mroos@linux.ee>
Reported-by: Mathieu Malaterre <malat@debian.org>
Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Tested-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-06-20 14:30:06 +09:00
..
Kconfig sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cassini.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
cassini.h sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
ldmvsw.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
niu.c net: ethernet: sun: niu set correct packet size in skb 2018-05-04 13:20:46 -04:00
niu.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunbmac.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunbmac.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sungem.c net: sungem: fix rx checksum support 2018-06-20 14:30:06 +09:00
sungem.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunhme.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunhme.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunqe.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunqe.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sunvnet.c sunvnet: does not support GSO for sctp 2018-03-14 14:01:33 -04:00
sunvnet_common.c sun: Add SPDX license tags to Sun network drivers 2018-02-07 21:51:02 -05:00
sunvnet_common.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00