Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Wed, 30 Jul 2008 16:15:31 -0700
Received: from ausesmta2-3.messageone.com ([64.20.241.45]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Wed, 30 Jul 2008 16:15:31 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by ausesmta2-3.messageone.com (8.13.8/8.13.8) with ESMTP id m6UNFUaE013057
	for <andy.sharp@onstor.com>; Wed, 30 Jul 2008 18:15:30 -0500
Received: from localhost.localdomain ([127.0.0.1]:57276 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S28584637AbYG3XO7 (ORCPT <rfc822;andy.sharp@onstor.com>);
	Thu, 31 Jul 2008 00:14:59 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 31 Jul 2008 00:14:42 +0100 (BST)
Received: from elvis.franken.de ([193.175.24.41]:57551 "EHLO elvis.franken.de")
	by ftp.linux-mips.org with ESMTP id S28584633AbYG3XOi (ORCPT
	<rfc822;linux-mips@linux-mips.org>); Thu, 31 Jul 2008 00:14:38 +0100
Received: from uucp (helo=solo.franken.de)
	by elvis.franken.de with local-bsmtp (Exim 3.36 #1)
	id 1KOKsO-0000By-00; Thu, 31 Jul 2008 01:14:36 +0200
Received: by solo.franken.de (Postfix, from userid 1000)
	id CD5E8DEBB8; Thu, 31 Jul 2008 01:14:24 +0200 (CEST)
From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: netdev@vger.kernel.org, linux-mips@linux-mips.org
cc: ralf@linux-mips.org, jgarzik@pobox.com
Subject: [PATCH] METH: fix MAC address setup
Message-Id: <20080730231424.CD5E8DEBB8@solo.franken.de>
Date: 	Thu, 31 Jul 2008 01:14:24 +0200 (CEST)
X-archive-position: 20057
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: tsbogend@alpha.franken.de
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-07-30_08:2008-07-30,2008-07-30,2008-07-30 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0807300105
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 30 Jul 2008 23:15:31.0258 (UTC) FILETIME=[295809A0:01C8F29A]

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;
 }

