MFC r272183:

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.
This commit is contained in:
np 2015-05-03 18:54:17 +00:00
parent 89820200ab
commit 8751c8b8b2

View File

@ -8262,6 +8262,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++;