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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to