Make sure the adapter's management queue and the event queue are

available before any uppper layer driver (TOE, iWARP, or iSCSI)
registers with the base cxgbe(4) driver.

Submitted by:	Hariprasad at chelsio dot com
Reviewed by:	np@
This commit is contained in:
np 2014-09-26 18:53:00 +00:00
parent b1e77b05a1
commit f3631462c4

View File

@ -8283,6 +8283,12 @@ t4_activate_uld(struct adapter *sc, int id)
SLIST_FOREACH(ui, &t4_uld_list, link) {
if (ui->uld_id == id) {
if (!(sc->flags & FULL_INIT_DONE)) {
rc = adapter_full_init(sc);
if (rc != 0)
goto done;
}
rc = ui->activate(sc);
if (rc == 0)
ui->refcount++;