projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d7d7b
)
mlx4_en: Setting dev->perm_addr field
author
Yevgeny Petrilin
<yevgenyp@mellanox.co.il>
Tue, 24 Aug 2010 03:45:30 +0000
(
03:45
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 Aug 2010 21:54:48 +0000
(14:54 -0700)
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_netdev.c
patch
|
blob
|
history
diff --git
a/drivers/net/mlx4/en_netdev.c
b/drivers/net/mlx4/en_netdev.c
index
d00bfe2
..
4d6dac7
100644
(file)
--- a/
drivers/net/mlx4/en_netdev.c
+++ b/
drivers/net/mlx4/en_netdev.c
@@
-1023,9
+1023,10
@@
int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
/* Set defualt MAC */
dev->addr_len = ETH_ALEN;
- for (i = 0; i < ETH_ALEN; i++)
- dev->dev_addr[ETH_ALEN - 1 - i] =
- (u8) (priv->mac >> (8 * i));
+ for (i = 0; i < ETH_ALEN; i++) {
+ dev->dev_addr[ETH_ALEN - 1 - i] = (u8) (priv->mac >> (8 * i));
+ dev->perm_addr[ETH_ALEN - 1 - i] = (u8) (priv->mac >> (8 * i));
+ }
/*
* Set driver features