svn commit: r282367 - stable/10/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Sun May 3 18:54:18 UTC 2015


Author: np
Date: Sun May  3 18:54:17 2015
New Revision: 282367
URL: https://svnweb.freebsd.org/changeset/base/282367

Log:
  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.

Modified:
  stable/10/sys/dev/cxgbe/t4_main.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/cxgbe/t4_main.c
==============================================================================
--- stable/10/sys/dev/cxgbe/t4_main.c	Sun May  3 15:09:34 2015	(r282366)
+++ stable/10/sys/dev/cxgbe/t4_main.c	Sun May  3 18:54:17 2015	(r282367)
@@ -8262,6 +8262,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-stable mailing list