r8169: add info for DASH being enabled
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 17 Jun 2020 20:51:10 +0000 (22:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jun 2020 03:38:36 +0000 (20:38 -0700)
In case of problems it facilitates the bug analysis if we know whether
DASH is active. Therefore emit a message in probe if this is the case.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c

index dad84ecf5a779efd9c045bff5438818b0821918e..7bb26fb07f5bd85980ad4489e4ff4b68c88ef8e8 100644 (file)
@@ -5432,8 +5432,10 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
                            jumbo_max, tp->mac_version <= RTL_GIGA_MAC_VER_06 ?
                            "ok" : "ko");
 
-       if (r8168_check_dash(tp))
+       if (r8168_check_dash(tp)) {
+               netdev_info(dev, "DASH enabled\n");
                rtl8168_driver_start(tp);
+       }
 
        if (pci_dev_run_wake(pdev))
                pm_runtime_put_sync(&pdev->dev);