Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2014 18:53:00 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272183 - head/sys/dev/cxgbe
Message-ID:  <201409261853.s8QIr0gi022503@svn.freebsd.org>

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



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