提交 d91d4bb9 编写于 作者: T Thomas Bogendoerfer 提交者: Jeff Garzik

METH: fix MAC address setup

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: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 0b1ab1b8
...@@ -100,7 +100,7 @@ static inline void load_eaddr(struct net_device *dev) ...@@ -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)); DPRINTK("Loading MAC Address: %s\n", print_mac(mac, dev->dev_addr));
macaddr = 0; macaddr = 0;
for (i = 0; i < 6; i++) 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; mace->eth.mac_addr = macaddr;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册