| To: | netdev@vger.kernel.org, linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] METH: fix MAC address setup |
| From: | Thomas Bogendoerfer <tsbogend@alpha.franken.de> |
| Date: | Thu, 31 Jul 2008 01:14:24 +0200 (CEST) |
| Cc: | ralf@linux-mips.org, jgarzik@pobox.com |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
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>
---
drivers/net/meth.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/meth.c b/drivers/net/meth.c
index 4cb364e..0a97c26 100644
--- a/drivers/net/meth.c
+++ b/drivers/net/meth.c
@@ -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;
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v4 0/10] Alchemy updates., Kevin Hickey |
|---|---|
| Next by Date: | [PATCH/RFC]: SGI Octane (IP30) Patches, Part one, Intro & IOC3, Kumba |
| Previous by Thread: | Swarm IDE bug in 2.6.26., Kaz Kylheku |
| Next by Thread: | [PATCH/RFC]: SGI Octane (IP30) Patches, Part one, Intro & IOC3, Kumba |
| Indexes: | [Date] [Thread] [Top] [All Lists] |