All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] igb: Make driver init async
@ 2019-01-21  8:37 ` Feng Tang
  0 siblings, 0 replies; 10+ messages in thread
From: Feng Tang @ 2019-01-21  8:37 UTC (permalink / raw)
  To: Jeff Kirsher, David S . Miller, intel-wired-lan, netdev; +Cc: Feng Tang

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@intel.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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-01-22  2:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21  8:37 [PATCH] igb: Make driver init async Feng Tang
2019-01-21  8:37 ` [Intel-wired-lan] " Feng Tang
2019-01-21 22:50 ` Alexander Duyck
2019-01-21 22:50   ` Alexander Duyck
2019-01-22  1:40   ` Feng Tang
2019-01-22  1:40     ` Feng Tang
2019-01-22  2:29     ` Alexander Duyck
2019-01-22  2:29       ` Alexander Duyck
2019-01-22  2:39       ` Feng Tang
2019-01-22  2:39         ` Feng Tang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.