diff options
author | John Baldwin <jhb@FreeBSD.org> | 2012-01-05 18:32:37 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2012-01-05 18:32:37 +0000 |
commit | b02a80a7c5037e470b546af371585ecc5b65a576 (patch) | |
tree | 65e6b09fb70e75899fad02e43b7ba5086455585d /sys/dev/qlxgb | |
parent | 19d52de5f44b8a9987349a456f44c88bff0b2daf (diff) | |
download | src-b02a80a7c5037e470b546af371585ecc5b65a576.tar.gz src-b02a80a7c5037e470b546af371585ecc5b65a576.zip |
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
Notes
Notes:
svn path=/head/; revision=229613
Diffstat (limited to 'sys/dev/qlxgb')
-rw-r--r-- | sys/dev/qlxgb/qla_os.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/qlxgb/qla_os.c b/sys/dev/qlxgb/qla_os.c index 1fc30f593a1e..77695d513c97 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); |