From c9ba410fa3fb4c9365f0f4c30498295d99453882 Mon Sep 17 00:00:00 2001 From: yar Date: Thu, 15 Mar 2007 14:10:51 +0000 Subject: Remove a spurious blank line at the start of vlan_growhash(). Add a diagnostic message to the function about resizing vlan hash table. --- sys/net/if_vlan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/net') 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 * -- cgit v1.1