]> 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)
commit20ccde776eb64bd5bcfab588283dcefb3080b8a3
tree945dd520c3eefdc1fb90285f3cdbafcc8adfdf22
parent74c53c36b37d990467bd53eba95d3cf7cefbe9bd
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