aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/re
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-06-26 11:45:06 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-06-26 11:45:06 +0000
commiteb956cd041f956275522092d6ba66671356ff84f (patch)
tree30aee113c454323f30d4c201e18a0f29e2938074 /sys/dev/re
parentbe80e49a01a84d1920236c2258b9ccb0df28062d (diff)
Notes
Diffstat (limited to 'sys/dev/re')
-rw-r--r--sys/dev/re/if_re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c
index 10725f11837f..c2ac4788fa02 100644
--- a/sys/dev/re/if_re.c
+++ b/sys/dev/re/if_re.c
@@ -640,7 +640,7 @@ re_set_rxmode(struct rl_softc *sc)
goto done;
}
- IF_ADDR_LOCK(ifp);
+ if_maddr_rlock(ifp);
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
@@ -651,7 +651,7 @@ re_set_rxmode(struct rl_softc *sc)
else
hashes[1] |= (1 << (h - 32));
}
- IF_ADDR_UNLOCK(ifp);
+ if_maddr_runlock(ifp);
if (hashes[0] != 0 || hashes[1] != 0) {
/*