]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: improve DASH support
authorHeiner Kallweit <hkallweit1@gmail.com>
Tue, 12 Jan 2021 08:31:20 +0000 (09:31 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jan 2021 03:01:30 +0000 (19:01 -0800)
commit6f9d1ccba8b0b91702e595a5339529a1e717f491
tree945dd520c3eefdc1fb90285f3cdbafcc8adfdf22
parente17398ca20fcf502f6a8e63b793e95e9af23a182
r8169: improve DASH support

Instead of doing the full DASH check each time r8168_check_dash() is
called, let's do it once in probe and store DASH capabilities in a
new rtl8169_private member.

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