diff options
author | jhb <jhb@FreeBSD.org> | 2012-01-05 18:32:37 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-01-05 18:32:37 +0000 |
commit | abacd98b68448d7389f4eafd53f9c85b050d8397 (patch) | |
tree | 65e6b09fb70e75899fad02e43b7ba5086455585d /sys/dev/bxe/if_bxe.c | |
parent | f3e5fe871847a53747d7120dd4762ee4311662f2 (diff) | |
download | FreeBSD-src-abacd98b68448d7389f4eafd53f9c85b050d8397.zip FreeBSD-src-abacd98b68448d7389f4eafd53f9c85b050d8397.tar.gz |
Update recently added drivers to use the if_*addr_r*lock() wrapper
functions instead of using the IF_ADDR_LOCK directly. The wrapper
functions are the supported interface for device drivers.
Reviewed by: bz, philip
MFC after: 1 week
Diffstat (limited to 'sys/dev/bxe/if_bxe.c')
-rw-r--r-- | sys/dev/bxe/if_bxe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/bxe/if_bxe.c b/sys/dev/bxe/if_bxe.c index 6ccd045..5f7f6a6 100644 --- a/sys/dev/bxe/if_bxe.c +++ b/sys/dev/bxe/if_bxe.c @@ -14115,7 +14115,7 @@ bxe_set_rx_mode(struct bxe_softc *sc) i = 0; config = BXE_SP(sc, mcast_config); - IF_ADDR_LOCK(ifp); + if_maddr_rlock(ifp); TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK) @@ -14144,7 +14144,7 @@ bxe_set_rx_mode(struct bxe_softc *sc) config_table->cam_entry.lsb_mac_addr); } - IF_ADDR_UNLOCK(ifp); + if_maddr_runlock(ifp); old = config->hdr.length; @@ -14172,7 +14172,7 @@ bxe_set_rx_mode(struct bxe_softc *sc) /* Accept one or more multicasts */ memset(mc_filter, 0, 4 * MC_HASH_SIZE); - IF_ADDR_LOCK(ifp); + if_maddr_rlock(ifp); TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) { if (ifma->ifma_addr->sa_family != AF_LINK) @@ -14184,7 +14184,7 @@ bxe_set_rx_mode(struct bxe_softc *sc) bit &= 0x1f; mc_filter[regidx] |= (1 << bit); } - IF_ADDR_UNLOCK(ifp); + if_maddr_runlock(ifp); for (i = 0; i < MC_HASH_SIZE; i++) REG_WR(sc, MC_HASH_OFFSET(sc, i), mc_filter[i]); |