]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74c53c36b37d990467bd53eba95d3cf7cefbe9bd
tree392e89381d335acb2ffc840e2086329017bb1389
parent49f4ac75ee8a775d1e2dd4c3687d4b14ec80a2b2
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