summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2007-05-27 22:04:30 +0000
committerkmacy <kmacy@FreeBSD.org>2007-05-27 22:04:30 +0000
commit3446e0aa75a101735c1d60a9af43bef1678280af (patch)
tree959a1b2361567495a42451aff81c8244a2f61c60
parent9983edfa3a3e5d5fa9c3f9135110c60c0789da4a (diff)
downloadFreeBSD-src-3446e0aa75a101735c1d60a9af43bef1678280af.zip
FreeBSD-src-3446e0aa75a101735c1d60a9af43bef1678280af.tar.gz
Don't bind queue to cpus if only one queue is in use
-rw-r--r--sys/dev/cxgb/cxgb_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c
index 206c537..f4a0aa8 100644
--- a/sys/dev/cxgb/cxgb_main.c
+++ b/sys/dev/cxgb/cxgb_main.c
@@ -1140,6 +1140,9 @@ bind_qsets(adapter_t *sc)
{
int i, j;
+ if (singleq)
+ return;
+
for (i = 0; i < (sc)->params.nports; ++i) {
const struct port_info *pi = adap2pinfo(sc, i);
@@ -1543,7 +1546,6 @@ cxgb_start_tx(struct ifnet *ifp, uint32_t txmax)
struct port_info *p = ifp->if_softc;
struct mbuf *m0, *m = NULL;
int err, in_use_init;
-
if (!p->link_config.link_ok)
return (ENXIO);
OpenPOWER on IntegriCloud