net:ethernet:aquantia: Workaround for HW checksum bug.
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 28 Aug 2017 18:52:10 +0000 (21:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 22:11:43 +0000 (15:11 -0700)
commit0a402e7b9725611069dad4c873d1516f8c805f38
tree99f6447fb4d18b4cfdba3fcd8072bae76ae33ed3
parent64fc7953ffd9424726988dd04945c28141ee41af
net:ethernet:aquantia: Workaround for HW checksum bug.

The hardware has the HW Checksum Offload bug when small
TCP patckets (with length <= 60 bytes) has wrong "checksum valid" bit.

The solution is - ignore checksum valid bit for small packets
(with length <= 60 bytes) and mark this as CHECKSUM_NONE to allow
network stack recalculate checksum itself.

Fixes: ccf9a5ed14be ("net: ethernet: aquantia: Atlantic A0 and B0 specific functions.")
Signed-off-by: Pavel Belous <Pavel.Belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c