]> 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)
commit4e5621570a83e2e0a5ca3b937af6de8b2b21ba36
tree201cc3af146bf9787c003b72f2652426f3809a3a
parent80faf44e66fd39e335c8edf6e86ad9d1c90e1721
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