aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vr
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-08-03 00:18:35 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-08-03 00:18:35 +0000
commit13b203d0d78cc08a7e0da8e8d5eb8c1a5d94ab69 (patch)
tree9a4e586ffbcd1450917ee5e388a4e1eb38254e32 /sys/dev/vr
parentbccb41014af4667b1cf2878456f5a8a854acf1f7 (diff)
Notes
Diffstat (limited to 'sys/dev/vr')
-rw-r--r--sys/dev/vr/if_vr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c
index 23194f7644c5..654de6f2235c 100644
--- a/sys/dev/vr/if_vr.c
+++ b/sys/dev/vr/if_vr.c
@@ -533,6 +533,7 @@ vr_setmulti(struct vr_softc *sc)
CSR_WRITE_4(sc, VR_MAR1, 0);
/* Now program new ones. */
+ IF_ADDR_LOCK(ifp);
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
@@ -544,6 +545,7 @@ vr_setmulti(struct vr_softc *sc)
hashes[1] |= (1 << (h - 32));
mcnt++;
}
+ IF_ADDR_UNLOCK(ifp);
if (mcnt)
rxfilt |= VR_RXCFG_RX_MULTI;