diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-08-24 16:50:46 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-08-24 16:50:46 +0000 |
| commit | f0b45413411250a1731acaf286bec7ea1c166c32 (patch) | |
| tree | 633eaa5cddac16cf9931921e8bc2b49ab6ca672f /sys/dev/gem | |
| parent | f08224f9282ebf08945288480ef5251675664f58 (diff) | |
Notes
Diffstat (limited to 'sys/dev/gem')
| -rw-r--r-- | sys/dev/gem/if_gem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c index 80db1cebb2d9..40a74b80714b 100644 --- a/sys/dev/gem/if_gem.c +++ b/sys/dev/gem/if_gem.c @@ -1894,6 +1894,7 @@ gem_setladrf(sc) /* Clear hash table */ memset(hash, 0, sizeof(hash)); + IF_ADDR_LOCK(ifp); TAILQ_FOREACH(inm, &ifp->if_multiaddrs, ifma_link) { if (inm->ifma_addr->sa_family != AF_LINK) continue; @@ -1906,6 +1907,7 @@ gem_setladrf(sc) /* Set the corresponding bit in the filter. */ hash[crc >> 4] |= 1 << (15 - (crc & 15)); } + IF_ADDR_UNLOCK(ifp); v |= GEM_MAC_RX_HASH_FILTER; ifp->if_flags &= ~IFF_ALLMULTI; |
