Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183976
b: refs/heads/master
c: 2cc04d2
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Pirko authored and David S. Miller committed Feb 5, 2010
1 parent 3cc70d5 commit 043bbb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 6d55ad4a534e7de3417819c6e894ff1c0a38f626
refs/heads/master: 2cc04d27c497af9e8d11181fa8ddef9c99592c78
10 changes: 5 additions & 5 deletions trunk/drivers/net/usb/dm9601.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,13 @@ static void dm9601_set_multicast(struct net_device *net)

if (net->flags & IFF_PROMISC) {
rx_ctl |= 0x02;
} else if (net->flags & IFF_ALLMULTI || net->mc_count > DM_MAX_MCAST) {
} else if (net->flags & IFF_ALLMULTI ||
netdev_mc_count(net) > DM_MAX_MCAST) {
rx_ctl |= 0x04;
} else if (net->mc_count) {
struct dev_mc_list *mc_list = net->mc_list;
int i;
} else if (!netdev_mc_empty(net)) {
struct dev_mc_list *mc_list;

for (i = 0; i < net->mc_count; i++, mc_list = mc_list->next) {
netdev_for_each_mc_addr(mc_list, net) {
u32 crc = ether_crc(ETH_ALEN, mc_list->dmi_addr) >> 26;
hashes[crc >> 3] |= 1 << (crc & 0x7);
}
Expand Down

0 comments on commit 043bbb2

Please sign in to comment.