Commit 8bf2e58f authored by Yevgeny Petrilin's avatar Yevgeny Petrilin Committed by David S. Miller

mlx4_en: Setting dev->perm_addr field

Signed-off-by: default avatarYevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00d7d7bc
...@@ -1023,9 +1023,10 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, ...@@ -1023,9 +1023,10 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
/* Set defualt MAC */ /* Set defualt MAC */
dev->addr_len = ETH_ALEN; dev->addr_len = ETH_ALEN;
for (i = 0; i < ETH_ALEN; i++) for (i = 0; i < ETH_ALEN; i++) {
dev->dev_addr[ETH_ALEN - 1 - i] = dev->dev_addr[ETH_ALEN - 1 - i] = (u8) (priv->mac >> (8 * i));
(u8) (priv->mac >> (8 * i)); dev->perm_addr[ETH_ALEN - 1 - i] = (u8) (priv->mac >> (8 * i));
}
/* /*
* Set driver features * Set driver features
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment