]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae5ebe475d73b1fb0efa57ec1391adb3a94da44a
tree99f6447fb4d18b4cfdba3fcd8072bae76ae33ed3
parenta412b2732761ec1030fbff90f42f39c5f44644cb
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