summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2016-01-21 14:06:16 +0000
committerbz <bz@FreeBSD.org>2016-01-21 14:06:16 +0000
commit66c4b9df9c23e3661f12035d6ab418199491dc44 (patch)
tree0ee4c709ddebd61166658c97ad2f168e84f5465e /sys/netinet/tcp_subr.c
parent4f9dd5713d7f3d5073620c95f83182bd62792964 (diff)
downloadFreeBSD-src-66c4b9df9c23e3661f12035d6ab418199491dc44.zip
FreeBSD-src-66c4b9df9c23e3661f12035d6ab418199491dc44.tar.gz
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.
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r--sys/netinet/tcp_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 3ce21a9..c0add82 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -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);
}
OpenPOWER on IntegriCloud