Date: Mon, 13 Feb 2012 19:35:36 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r231603 - head/sys/dev/oce Message-ID: <201202131935.q1DJZaQX058469@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jhb Date: Mon Feb 13 19:35:35 2012 New Revision: 231603 URL: http://svn.freebsd.org/changeset/base/231603 Log: Use if_maddr_*lock() routines to lock the per-interface multicast address list rather than manipulating the lock directly. Modified: head/sys/dev/oce/oce_hw.c Modified: head/sys/dev/oce/oce_hw.c ============================================================================== --- head/sys/dev/oce/oce_hw.c Mon Feb 13 19:31:32 2012 (r231602) +++ head/sys/dev/oce/oce_hw.c Mon Feb 13 19:35:35 2012 (r231603) @@ -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_RLOCK(ifp); + if_maddr_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_RUNLOCK(ifp); + if_maddr_runlock(ifp); #endif req->params.req.if_id = sc->if_id; rc = oce_update_multicast(sc, &dma);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202131935.q1DJZaQX058469>