]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit147593714f0155cea403397fcaecb9689f146d1b
tree21bdad75629bdd61a9f65a455f7d729a487f6183
parentbcf7cb3c8c37912d134f1bf82ac2cc74e133ac0c
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