Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2015 18:54:17 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r282367 - stable/10/sys/dev/cxgbe
Message-ID:  <201505031854.t43IsHkb046544@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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++;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505031854.t43IsHkb046544>