diff options
Diffstat (limited to 'sys/dev/usb/net/if_cue.c')
-rw-r--r-- | sys/dev/usb/net/if_cue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/net/if_cue.c b/sys/dev/usb/net/if_cue.c index 4bb0da2..dcbef61 100644 --- a/sys/dev/usb/net/if_cue.c +++ b/sys/dev/usb/net/if_cue.c @@ -318,7 +318,7 @@ cue_setmulti(struct usb_ether *ue) } /* now program new ones */ - IF_ADDR_LOCK(ifp); + if_maddr_rlock(ifp); TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK) @@ -326,7 +326,7 @@ cue_setmulti(struct usb_ether *ue) h = cue_mchash(LLADDR((struct sockaddr_dl *)ifma->ifma_addr)); hashtbl[h >> 3] |= 1 << (h & 0x7); } - IF_ADDR_UNLOCK(ifp); + if_maddr_runlock(ifp); /* * Also include the broadcast address in the filter |