OSDN Git Service

net: aquantia: fix rx checksum offload bits
authorDmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Tue, 27 Nov 2018 14:51:17 +0000 (14:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2018 21:18:45 +0000 (13:18 -0800)
commit37c4b91f955fdd5f4ad771956b97d35f1321098e
treef85a5ef0900f4c28ba71e0bb09e98c36e3ca93d4
parent43d0e96022ae3c66743c01bba6c18a3afec7b578
net: aquantia: fix rx checksum offload bits

The last set of csum offload fixes had a leak:

Checksum enabled status bits from rx descriptor were incorrectly
interpreted. Consequently all the other valid logic worked on zero bits.
That caused rx checksum offloads never to trigger.

Tested by dumping rx descriptors and validating resulting csum_level.

Reported-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: Dmitry Bogdanov <dmitry.bogdanov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Fixes: ad703c2b9127f ("net: aquantia: invalid checksumm offload implementation")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c