svn commit: r272183 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Fri Sep 26 18:53:01 UTC 2014
Author: np
Date: Fri Sep 26 18:53:00 2014
New Revision: 272183
URL: http://svnweb.freebsd.org/changeset/base/272183
Log:
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@
Modified:
head/sys/dev/cxgbe/t4_main.c
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Fri Sep 26 18:37:49 2014 (r272182)
+++ head/sys/dev/cxgbe/t4_main.c Fri Sep 26 18:53:00 2014 (r272183)
@@ -8283,6 +8283,12 @@ t4_activate_uld(struct adapter *sc, int
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++;
More information about the svn-src-all
mailing list