From cb6c101a86f388c2c23a11cbd253c30b8baec3d8 Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Sat, 7 Feb 2015 01:50:32 +0000 Subject: [PATCH] cxgbe(4): fix a test made while enabling TOE. MFC after: 1 week --- sys/dev/cxgbe/t4_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 7f59e840de2..e2f3c594df4 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -8215,7 +8215,12 @@ toe_capability(struct port_info *pi, int enable) 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);