Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2017 18:21:17 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r326370 - head/sys/net
Message-ID:  <201711291821.vATILHPD018243@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Wed Nov 29 18:21:17 2017
New Revision: 326370
URL: https://svnweb.freebsd.org/changeset/base/326370

Log:
  Fix comment introduced in r326369
  
  The code uses the set of all CPUs, it doesn't zero out the set.
  
  Sponsored by:	Limelight Networks

Modified:
  head/sys/net/iflib.c

Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c	Wed Nov 29 18:14:57 2017	(r326369)
+++ head/sys/net/iflib.c	Wed Nov 29 18:21:17 2017	(r326370)
@@ -4260,7 +4260,7 @@ iflib_device_register(device_t dev, void *sc, if_share
 	/* XXX format name */
 	taskqgroup_attach(qgroup_if_config_tqg, &ctx->ifc_admin_task, ctx, -1, "admin");
 
-	/* Set up cpu set.  If it fails, zero out the set. */
+	/* Set up cpu set.  If it fails, use the set of all CPUs. */
 	if (bus_get_cpus(dev, INTR_CPUS, sizeof(ctx->ifc_cpus), &ctx->ifc_cpus) != 0) {
 		device_printf(dev, "Unable to fetch CPU list\n");
 		CPU_COPY(&all_cpus, &ctx->ifc_cpus);



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