From: Feng Tang <feng.tang@intel.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
"David S . Miller" <davem@davemloft.net>,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org
Cc: Feng Tang <feng.tang@intel.com>
Subject: [PATCH] igb: Make driver init async
Date: Mon, 21 Jan 2019 16:37:05 +0800 [thread overview]
Message-ID: <1548059825-78171-1-git-send-email-feng.tang@intel.com> (raw)
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
next reply other threads:[~2019-01-21 8:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-21 8:37 Feng Tang [this message]
2019-01-21 22:50 ` [Intel-wired-lan] [PATCH] igb: Make driver init async Alexander Duyck
2019-01-22 1:40 ` Feng Tang
2019-01-22 2:29 ` Alexander Duyck
2019-01-22 2:39 ` Feng Tang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1548059825-78171-1-git-send-email-feng.tang@intel.com \
--to=feng.tang@intel.com \
--cc=davem@davemloft.net \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).