summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Bulyzhin <oleg@FreeBSD.org>2018-11-28 11:58:40 +0000
committerOleg Bulyzhin <oleg@FreeBSD.org>2018-11-28 11:58:40 +0000
commitb323c04a6dc722acfbe0503475f65b554a0de7b0 (patch)
tree8f75c8618b8ca5b294d15af48cfd5d9b4a4011c1
parent3b0bd889250f6006b8c6e505200db5e18fcb412e (diff)
downloadsrc-test2-b323c04a6dc722acfbe0503475f65b554a0de7b0.tar.gz
src-test2-b323c04a6dc722acfbe0503475f65b554a0de7b0.zip
Notes
-rw-r--r--sys/net/if_vlan.c6
1 files changed, 3 insertions, 3 deletions
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)
{