From c76e7e4585ac53269584930fd3cbb1acebbd7a0f Mon Sep 17 00:00:00 2001 From: bz Date: Sat, 11 Feb 2012 07:43:33 +0000 Subject: [PATCH] Make use of the read-only variant of the IF_ADDR_*LOCK() macros introduced in r229614 rather than the compat one. --- sys/dev/oce/oce_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/oce/oce_hw.c b/sys/dev/oce/oce_hw.c index e877f84a0e38..f60892eb64b8 100644 --- a/sys/dev/oce/oce_hw.c +++ b/sys/dev/oce/oce_hw.c @@ -558,7 +558,7 @@ oce_hw_update_multicast(POCE_SOFTC sc) bzero(req, sizeof(struct mbx_set_common_iface_multicast)); #if __FreeBSD_version > 800000 - IF_ADDR_LOCK(ifp); + IF_ADDR_RLOCK(ifp); #endif TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK) @@ -578,7 +578,7 @@ oce_hw_update_multicast(POCE_SOFTC sc) req->params.req.num_mac = req->params.req.num_mac + 1; } #if __FreeBSD_version > 800000 -IF_ADDR_UNLOCK(ifp); + IF_ADDR_RUNLOCK(ifp); #endif req->params.req.if_id = sc->if_id; rc = oce_update_multicast(sc, &dma);