summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2007-03-15 14:10:51 +0000
committeryar <yar@FreeBSD.org>2007-03-15 14:10:51 +0000
commitc9ba410fa3fb4c9365f0f4c30498295d99453882 (patch)
treea44930eeead0c8f5ed22e68c4e7a8ed7c7369854 /sys/net/if_vlan.c
parent9fd234be343f947540895a459d5a5422afd06f3c (diff)
downloadFreeBSD-src-c9ba410fa3fb4c9365f0f4c30498295d99453882.zip
FreeBSD-src-c9ba410fa3fb4c9365f0f4c30498295d99453882.tar.gz
Remove a spurious blank line at the start of vlan_growhash().
Add a diagnostic message to the function about resizing vlan hash table.
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r--sys/net/if_vlan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 90da454..1dce7a5 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -310,7 +310,6 @@ vlan_remhash(struct ifvlantrunk *trunk, struct ifvlan *ifv)
static void
vlan_growhash(struct ifvlantrunk *trunk, int howmuch)
{
-
struct ifvlan *ifv;
struct ifvlanhead *hash2;
int hwidth2, i, j, n, n2;
@@ -350,6 +349,10 @@ vlan_growhash(struct ifvlantrunk *trunk, int howmuch)
trunk->hash = hash2;
trunk->hwidth = hwidth2;
trunk->hmask = n2 - 1;
+
+ if (bootverbose)
+ if_printf(trunk->parent,
+ "VLAN hash table resized from %d to %d buckets\n", n, n2);
}
static __inline struct ifvlan *
OpenPOWER on IntegriCloud