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
This commit is contained in:
parent
76d68eccbd
commit
616bc4f476
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292603
@ -2551,7 +2551,7 @@ bpfattach2(struct ifnet *ifp, u_int dlt, u_int hdrlen, struct bpf_if **driverp)
|
||||
|
||||
bp->bif_hdrlen = hdrlen;
|
||||
|
||||
if (bootverbose)
|
||||
if (bootverbose && IS_DEFAULT_VNET(curvnet))
|
||||
if_printf(ifp, "bpf attached\n");
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user