lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1548059825-78171-1-git-send-email-feng.tang@intel.com>
Date:   Mon, 21 Jan 2019 16:37:05 +0800
From:   Feng Tang <feng.tang@...el.com>
To:     Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
        "David S . Miller" <davem@...emloft.net>,
        intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org
Cc:     Feng Tang <feng.tang@...el.com>
Subject: [PATCH] igb: Make driver init async

When optimizing boot time for a platform with igb module, we found the
igb driver probe will take about 45 ms, make the probe asynchronous
will save quite some time as the init runs in parallel with other
asynchronous drivers.

In theory, this could be applied to some other drivers like igc or
e1000, but we don't have HW to verify that.

Signed-off-by: Feng Tang <feng.tang@...el.com>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 7137e7f..d477253 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -229,6 +229,7 @@ static struct pci_driver igb_driver = {
 	.id_table = igb_pci_tbl,
 	.probe    = igb_probe,
 	.remove   = igb_remove,
+	.driver.probe_type = PROBE_PREFER_ASYNCHRONOUS,
 #ifdef CONFIG_PM
 	.driver.pm = &igb_pm_ops,
 #endif
-- 
2.7.4

Powered by blists - more mailing lists