]> 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)
commite17398ca20fcf502f6a8e63b793e95e9af23a182
tree392e89381d335acb2ffc840e2086329017bb1389
parent3a488391679ed7b0f4b7fd6c9f0704a51f1d4c3a
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