diff options
Diffstat (limited to 'sys/dev/tl/if_tl.c')
-rw-r--r-- | sys/dev/tl/if_tl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/tl/if_tl.c b/sys/dev/tl/if_tl.c index 28fea78..f1a3db8 100644 --- a/sys/dev/tl/if_tl.c +++ b/sys/dev/tl/if_tl.c @@ -952,7 +952,7 @@ tl_setmulti(sc) hashes[1] = 0xFFFFFFFF; } else { i = 1; - IF_ADDR_LOCK(ifp); + if_maddr_rlock(ifp); TAILQ_FOREACH_REVERSE(ifma, &ifp->if_multiaddrs, ifmultihead, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK) continue; @@ -975,7 +975,7 @@ tl_setmulti(sc) else hashes[1] |= (1 << (h - 32)); } - IF_ADDR_UNLOCK(ifp); + if_maddr_runlock(ifp); } tl_dio_write32(sc, TL_HASH1, hashes[0]); |