svn commit: r294501 - in stable/10/sys: net netinet

Bjoern A. Zeeb bz at FreeBSD.org
Thu Jan 21 14:06:17 UTC 2016


Author: bz
Date: Thu Jan 21 14:06:16 2016
New Revision: 294501
URL: https://svnweb.freebsd.org/changeset/base/294501

Log:
  MFC r292603:
  
   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.

Modified:
  stable/10/sys/net/bpf.c
  stable/10/sys/netinet/tcp_subr.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/net/bpf.c
==============================================================================
--- stable/10/sys/net/bpf.c	Thu Jan 21 14:04:02 2016	(r294500)
+++ stable/10/sys/net/bpf.c	Thu Jan 21 14:06:16 2016	(r294501)
@@ -2500,7 +2500,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: stable/10/sys/netinet/tcp_subr.c
==============================================================================
--- stable/10/sys/netinet/tcp_subr.c	Thu Jan 21 14:04:02 2016	(r294500)
+++ stable/10/sys/netinet/tcp_subr.c	Thu Jan 21 14:06:16 2016	(r294501)
@@ -341,7 +341,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);
 	}


More information about the svn-src-all mailing list