svn commit: r231508 - head/sys/dev/oce
Bjoern A. Zeeb
bz at FreeBSD.org
Sat Feb 11 07:43:33 UTC 2012
Author: bz
Date: Sat Feb 11 07:43:33 2012
New Revision: 231508
URL: http://svn.freebsd.org/changeset/base/231508
Log:
Make use of the read-only variant of the IF_ADDR_*LOCK() macros introduced
in r229614 rather than the compat one.
Modified:
head/sys/dev/oce/oce_hw.c
Modified: head/sys/dev/oce/oce_hw.c
==============================================================================
--- head/sys/dev/oce/oce_hw.c Sat Feb 11 06:21:16 2012 (r231507)
+++ head/sys/dev/oce/oce_hw.c Sat Feb 11 07:43:33 2012 (r231508)
@@ -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);
More information about the svn-src-all
mailing list