]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: disable hw csum for short packets on all chip versions
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 5 Nov 2020 17:14:47 +0000 (18:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Nov 2020 20:14:35 +0000 (12:14 -0800)
commit62036253595ef4b85dcdf76f8372a6b6df91efc2
treea0ae73b51fc4bcd2023f69d26414b95a2ec94bb3
parent6c3786736bccf8e6073a65b9363cb456dfaace3a
r8169: disable hw csum for short packets on all chip versions

RTL8125B has same or similar short packet hw padding bug as RTL8168evl.
The main workaround has been extended accordingly, however we have to
disable also hw checksumming for short packets on affected new chip
versions. Instead of checking for an affected chip version let's
simply disable hw checksumming for short packets in general.

v2:
- remove the version checks and disable short packet hw csum in general
- reflect this in commit title and message

Fixes: 56b3f5f0e3f9 ("r8169: add support for RTL8125B")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/7fbb35f0-e244-ef65-aa55-3872d7d38698@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c