diff options
author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2007-03-15 14:10:51 +0000 |
---|---|---|
committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2007-03-15 14:10:51 +0000 |
commit | f84b2d6998beaae9920e1829d9408ec56260b292 (patch) | |
tree | a44930eeead0c8f5ed22e68c4e7a8ed7c7369854 /sys/net/if_vlan.c | |
parent | b46a157df0cc19e71f1caedd96a7af471027ae68 (diff) | |
download | src-f84b2d6998beaae9920e1829d9408ec56260b292.tar.gz src-f84b2d6998beaae9920e1829d9408ec56260b292.zip |
Remove a spurious blank line at the start of vlan_growhash().
Add a diagnostic message to the function about resizing vlan
hash table.
Notes
Notes:
svn path=/head/; revision=167601
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 90da45410590..1dce7a5bcc39 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 * |