Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2015 15:00:04 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292603 - in head/sys: net netinet
Message-ID:  <201512221500.tBMF04Fq043235@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Tue Dec 22 15:00:04 2015
New Revision: 292603
URL: https://svnweb.freebsd.org/changeset/base/292603

Log:
  If bootverbose is enabled every vnet startup and virtual interface
  creation will print extra lines on the console. We are generally not
  interested in this (repeated) information for each VNET. Thus only
  print it for the default VNET. Virtual interfaces on the base system
  will remain printing information, but e.g. each loopback in each vnet
  will no longer cause a "bpf attached" line.
  
  Sponsored by:		The FreeBSD Foundation
  MFC after:		2 weeks
  Reviewed by:		gnn
  Differential Revision:	https://reviews.freebsd.org/D4531

Modified:
  head/sys/net/bpf.c
  head/sys/netinet/tcp_subr.c

Modified: head/sys/net/bpf.c
==============================================================================
--- head/sys/net/bpf.c	Tue Dec 22 14:57:04 2015	(r292602)
+++ head/sys/net/bpf.c	Tue Dec 22 15:00:04 2015	(r292603)
@@ -2551,7 +2551,7 @@ bpfattach2(struct ifnet *ifp, u_int dlt,
 
 	bp->bif_hdrlen = hdrlen;
 
-	if (bootverbose)
+	if (bootverbose && IS_DEFAULT_VNET(curvnet))
 		if_printf(ifp, "bpf attached\n");
 }
 

Modified: head/sys/netinet/tcp_subr.c
==============================================================================
--- head/sys/netinet/tcp_subr.c	Tue Dec 22 14:57:04 2015	(r292602)
+++ head/sys/netinet/tcp_subr.c	Tue Dec 22 15:00:04 2015	(r292603)
@@ -609,7 +609,7 @@ tcp_init(void)
 		 */
 		if (hashsize < 512)
 			hashsize = 512;
-		if (bootverbose)
+		if (bootverbose && IS_DEFAULT_VNET(curvnet))
 			printf("%s: %s auto tuned to %d\n", __func__,
 			    tcbhash_tuneable, hashsize);
 	}



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