summaryrefslogtreecommitdiff
path: root/sys/pci/if_ste.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-08-03 00:18:35 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-08-03 00:18:35 +0000
commit13b203d0d78cc08a7e0da8e8d5eb8c1a5d94ab69 (patch)
tree9a4e586ffbcd1450917ee5e388a4e1eb38254e32 /sys/pci/if_ste.c
parentbccb41014af4667b1cf2878456f5a8a854acf1f7 (diff)
Notes
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r--sys/pci/if_ste.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c
index 27d53996a41d..8e73f65667cf 100644
--- a/sys/pci/if_ste.c
+++ b/sys/pci/if_ste.c
@@ -579,6 +579,7 @@ ste_setmulti(sc)
CSR_WRITE_2(sc, STE_MAR3, 0);
/* now program new ones */
+ IF_ADDR_LOCK(ifp);
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
if (ifma->ifma_addr->sa_family != AF_LINK)
continue;
@@ -589,6 +590,7 @@ ste_setmulti(sc)
else
hashes[1] |= (1 << (h - 32));
}
+ IF_ADDR_UNLOCK(ifp);
CSR_WRITE_2(sc, STE_MAR0, hashes[0] & 0xFFFF);
CSR_WRITE_2(sc, STE_MAR1, (hashes[0] >> 16) & 0xFFFF);