diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2010-08-23 23:45:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 17:54:48 -0400 |
commit | 8bf2e58f8b7a14244bf182ad0a3ba0457ad70c62 (patch) | |
tree | 19a584e0df5b19080777bfea0dc97150ae2022aa /drivers/net/mlx4 | |
parent | 00d7d7bc6e886ef48af6ed766eb12b8cec241d35 (diff) |
mlx4_en: Setting dev->perm_addr field
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4')
-rw-r--r-- | drivers/net/mlx4/en_netdev.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c index d00bfe250b05..4d6dac7617f7 100644 --- 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, | |||
1023 | 1023 | ||
1024 | /* Set defualt MAC */ | 1024 | /* Set defualt MAC */ |
1025 | dev->addr_len = ETH_ALEN; | 1025 | dev->addr_len = ETH_ALEN; |
1026 | for (i = 0; i < ETH_ALEN; i++) | 1026 | for (i = 0; i < ETH_ALEN; i++) { |
1027 | dev->dev_addr[ETH_ALEN - 1 - i] = | 1027 | dev->dev_addr[ETH_ALEN - 1 - i] = (u8) (priv->mac >> (8 * i)); |
1028 | (u8) (priv->mac >> (8 * i)); | 1028 | dev->perm_addr[ETH_ALEN - 1 - i] = (u8) (priv->mac >> (8 * i)); |
1029 | } | ||
1029 | 1030 | ||
1030 | /* | 1031 | /* |
1031 | * Set driver features | 1032 | * Set driver features |