Skip to content

Commit

Permalink
METH: fix MAC address setup
Browse files Browse the repository at this point in the history
Setup of the mac filter lost the upper 16bit of the mac address. This
bug got unconvered by a patch, which fixed the promiscous handling.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Thomas Bogendoerfer authored and Jeff Garzik committed Aug 7, 2008
1 parent 0b1ab1b commit d91d4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/meth.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static inline void load_eaddr(struct net_device *dev)
DPRINTK("Loading MAC Address: %s\n", print_mac(mac, dev->dev_addr));
macaddr = 0;
for (i = 0; i < 6; i++)
macaddr |= dev->dev_addr[i] << ((5 - i) * 8);
macaddr |= (u64)dev->dev_addr[i] << ((5 - i) * 8);

mace->eth.mac_addr = macaddr;
}
Expand Down

0 comments on commit d91d4bb

Please sign in to comment.