summaryrefslogtreecommitdiffstats
path: root/sys/dev/qlxgb
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-01-05 18:32:37 +0000
committerjhb <jhb@FreeBSD.org>2012-01-05 18:32:37 +0000
commitabacd98b68448d7389f4eafd53f9c85b050d8397 (patch)
tree65e6b09fb70e75899fad02e43b7ba5086455585d /sys/dev/qlxgb
parentf3e5fe871847a53747d7120dd4762ee4311662f2 (diff)
downloadFreeBSD-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/qlxgb')
-rw-r--r--sys/dev/qlxgb/qla_os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/qlxgb/qla_os.c b/sys/dev/qlxgb/qla_os.c
index 1fc30f5..77695d5 100644
--- a/sys/dev/qlxgb/qla_os.c
+++ b/sys/dev/qlxgb/qla_os.c
@@ -760,7 +760,7 @@ qla_set_multi(qla_host_t *ha, uint32_t add_multi)
int mcnt = 0;
struct ifnet *ifp = ha->ifp;
- IF_ADDR_LOCK(ifp);
+ if_maddr_rlock(ifp);
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
@@ -776,7 +776,7 @@ qla_set_multi(qla_host_t *ha, uint32_t add_multi)
mcnt++;
}
- IF_ADDR_UNLOCK(ifp);
+ if_maddr_runlock(ifp);
qla_hw_set_multi(ha, mta, mcnt, add_multi);
OpenPOWER on IntegriCloud