diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 79ef24226005..8474136043c9 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -314,9 +314,6 @@ VNET_DEFINE_STATIC(struct if_clone *, vlan_cloner); #define V_vlan_cloner VNET(vlan_cloner) #endif -#ifndef VLAN_ARRAY -#define HASH(n, m) ((((n) >> 8) ^ ((n) >> 4) ^ (n)) & (m)) - static void vlan_mc_free(struct epoch_context *ctx) { @@ -324,6 +321,9 @@ vlan_mc_free(struct epoch_context *ctx) free(mc, M_VLAN); } +#ifndef VLAN_ARRAY +#define HASH(n, m) ((((n) >> 8) ^ ((n) >> 4) ^ (n)) & (m)) + static void vlan_inithash(struct ifvlantrunk *trunk) {