r8169: improve rtl8169_rx_csum
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 12 Jan 2021 08:29:45 +0000 (09:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 03:01:30 +0000 (19:01 -0800)
commit206a75e003e17aad4fd60047deee2252fdc3df38
tree392e89381d335acb2ffc840e2086329017bb1389
parent1e8636b366be9deca4492e82c54242f9f5e5b731
r8169: improve rtl8169_rx_csum

Extend the mask to include the checksum failure bits. This allows to
simplify the condition in rtl8169_rx_csum().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c