Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2015 01:50:33 +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: r278342 - head/sys/dev/cxgbe
Message-ID:  <201502070150.t171oXg6070616@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Sat Feb  7 01:50:32 2015
New Revision: 278342
URL: https://svnweb.freebsd.org/changeset/base/278342

Log:
  cxgbe(4): fix a test made while enabling TOE.
  
  MFC after:	1 week

Modified:
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Sat Feb  7 01:03:45 2015	(r278341)
+++ head/sys/dev/cxgbe/t4_main.c	Sat Feb  7 01:50:32 2015	(r278342)
@@ -8215,7 +8215,12 @@ toe_capability(struct port_info *pi, int
 		return (ENODEV);
 
 	if (enable) {
-		if (!(sc->flags & FULL_INIT_DONE)) {
+		/*
+		 * We need the port's queues around so that we're able to send
+		 * and receive CPLs to/from the TOE even if the ifnet for this
+		 * port has never been UP'd administratively.
+		 */
+		if (!(pi->flags & PORT_INIT_DONE)) {
 			rc = cxgbe_init_synchronized(pi);
 			if (rc)
 				return (rc);



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