Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72739
b: refs/heads/master
c: 9030b3d
h: refs/heads/master
i:
  72737: 5377789
  72735: 54341e7
v: v3
  • Loading branch information
Joakim Tjernlund authored and Jeff Garzik committed Oct 29, 2007
1 parent 061176c commit bc0f3fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 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: 5e7bf8cc60d29354305cc76daa21a7d92745521c
refs/heads/master: 9030b3dd671d672f5fcc91c2ec48f02082310af4
15 changes: 2 additions & 13 deletions trunk/drivers/net/ucc_geth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2214,9 +2214,7 @@ static void ucc_geth_set_multi(struct net_device *dev)
struct dev_mc_list *dmi;
struct ucc_fast *uf_regs;
struct ucc_geth_82xx_address_filtering_pram *p_82xx_addr_filt;
u8 tempaddr[6];
u8 *mcptr, *tdptr;
int i, j;
int i;

ugeth = netdev_priv(dev);

Expand Down Expand Up @@ -2255,19 +2253,10 @@ static void ucc_geth_set_multi(struct net_device *dev)
if (!(dmi->dmi_addr[0] & 1))
continue;

/* The address in dmi_addr is LSB first,
* and taddr is MSB first. We have to
* copy bytes MSB first from dmi_addr.
*/
mcptr = (u8 *) dmi->dmi_addr + 5;
tdptr = (u8 *) tempaddr;
for (j = 0; j < 6; j++)
*tdptr++ = *mcptr--;

/* Ask CPM to run CRC and set bit in
* filter mask.
*/
hw_add_addr_in_hash(ugeth, tempaddr);
hw_add_addr_in_hash(ugeth, dmi->dmi_addr);
}
}
}
Expand Down

0 comments on commit bc0f3fc

Please sign in to comment.