]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
smsc95xx: Support only IPv4 TCP/UDP csum offload
authorNisar Sayed <Nisar.Sayed@microchip.com>
Fri, 19 May 2017 14:00:25 +0000 (14:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:31:48 +0000 (13:31 -0400)
commitfe0cd8ca1b82983db24b173bb8518ea646c02d25
tree201cc3af146bf9787c003b72f2652426f3809a3a
parent776ee323ddf1167435f2cae0d7f8a6955383b5aa
smsc95xx: Support only IPv4 TCP/UDP csum offload

When TX checksum offload is used, if the computed checksum is 0 the
LAN95xx device do not alter the checksum to 0xffff.  In the case of ipv4
UDP checksum, it indicates to receiver that no checksum is calculated.
Under ipv6, UDP checksum yields a result of zero must be changed to
0xffff. Hence disabling checksum offload for ipv6 packets.

Signed-off-by: Nisar Sayed <Nisar.Sayed@microchip.com>
Reported-by: popcorn mix <popcornmix@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c