net: lan78xx: Use s/w csum check on VLANs without tag stripping
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Mon, 25 Jun 2018 14:07:15 +0000 (15:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 13:53:29 +0000 (22:53 +0900)
commit9343ac87f2a4e09bf6e27b5f31e72e9e3a82abff
tree21bdad75629bdd61a9f65a455f7d729a487f6183
parentec21ecf0aad27956dc64475e5acd78f3575df462
net: lan78xx: Use s/w csum check on VLANs without tag stripping

Observations of VLANs dropping packets due to invalid
checksums when not offloading VLAN tag receive.
With VLAN tag stripping enabled no issue is observed.

Drop back to s/w checksums if VLAN offload is disabled.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c