]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:18 +0000 (19:22 +0100)
commit89e313118c266ebfdd300d28fcfc3ec027edd264
treed541c03360195383396c6382b0655d077d3bc710
parentb579b0c91b96cd9377ef2796d2173474d5031fd5
r8169: disable hw csum for short packets on all chip versions

[ Upstream commit 847f0a2bfd2fe16d6afa537816b313b71f32e139 ]

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: 0439297be951 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c