Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256009
b: refs/heads/master
c: e77aeb7
h: refs/heads/master
i:
  256007: d8a5c3a
v: v3
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Jul 1, 2011
1 parent 5ce0aa5 commit 65b8387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9ab82c774d8abcca8b6c1d5f30f5912a4448980
refs/heads/master: e77aeb71f04ed236fffe5f347e208c8b0e92d48a
5 changes: 1 addition & 4 deletions trunk/drivers/net/tulip/de4x5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1964,9 +1964,7 @@ SetMulticastFilter(struct net_device *dev)
omr |= OMR_PM; /* Pass all multicasts */
} else if (lp->setup_f == HASH_PERF) { /* Hash Filtering */
netdev_for_each_mc_addr(ha, dev) {
addrs = ha->addr;
if ((*addrs & 0x01) == 1) { /* multicast address? */
crc = ether_crc_le(ETH_ALEN, addrs);
crc = ether_crc_le(ETH_ALEN, ha->addr);
hashcode = crc & HASH_BITS; /* hashcode is 9 LSb of CRC */

byte = hashcode >> 3; /* bit[3-8] -> byte in filter */
Expand All @@ -1977,7 +1975,6 @@ SetMulticastFilter(struct net_device *dev)
byte -= 1;
}
lp->setup_frame[byte] |= bit;
}
}
} else { /* Perfect filtering */
netdev_for_each_mc_addr(ha, dev) {
Expand Down

0 comments on commit 65b8387

Please sign in to comment.