diff options
| author | Matt Macy <mmacy@FreeBSD.org> | 2018-05-19 05:27:49 +0000 |
|---|---|---|
| committer | Matt Macy <mmacy@FreeBSD.org> | 2018-05-19 05:27:49 +0000 |
| commit | 46d0f824bec21e582b8b0df2fc6f124eff6aac18 (patch) | |
| tree | 4faeedba4b5207c3cbe6c331be88c1334ca354e1 /sys/net/if_vxlan.c | |
| parent | acbde29858530248556cea9a363660c48db383f0 (diff) | |
Notes
Diffstat (limited to 'sys/net/if_vxlan.c')
| -rw-r--r-- | sys/net/if_vxlan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/net/if_vxlan.c b/sys/net/if_vxlan.c index 53be5af62b10a..1dd530272ba1b 100644 --- a/sys/net/if_vxlan.c +++ b/sys/net/if_vxlan.c @@ -588,7 +588,7 @@ vxlan_ftable_update_locked(struct vxlan_softc *sc, struct rm_priotracker *tracker) { struct vxlan_ftable_entry *fe; - int error; + int error __unused; VXLAN_LOCK_ASSERT(sc); @@ -863,8 +863,9 @@ static void vxlan_socket_destroy(struct vxlan_socket *vso) { struct socket *so; - struct vxlan_socket_mc_info *mc; +#ifdef INVARIANTS int i; + struct vxlan_socket_mc_info *mc; for (i = 0; i < VXLAN_SO_MC_MAX_GROUPS; i++) { mc = &vso->vxlso_mc[i]; @@ -878,7 +879,7 @@ vxlan_socket_destroy(struct vxlan_socket *vso) ("%s: socket %p vni_hash[%d] not empty", __func__, vso, i)); } - +#endif so = vso->vxlso_sock; if (so != NULL) { vso->vxlso_sock = NULL; @@ -2505,7 +2506,7 @@ vxlan_rcv_udp_packet(struct mbuf *m, int offset, struct inpcb *inpcb, struct vxlan_socket *vso; struct vxlan_header *vxh, vxlanhdr; uint32_t vni; - int error; + int error __unused; M_ASSERTPKTHDR(m); vso = xvso; |
