]> git.baikalelectronics.ru Git - 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)
commit6258ce4504dd5385345d661b33985ac441cadd5f
tree201cc3af146bf9787c003b72f2652426f3809a3a
parentf5e4860303d4ae7f9dcdf9121dc1bdda30d07b90
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