mlx4: query netdevice to get initial MAC address
authorOr Ami <ora@mellanox.com>
Tue, 30 Jun 2015 09:27:58 +0000 (11:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 09:04:00 +0000 (11:04 +0200)
commitfec3608673e6a2696e540c0d1dc7e4a15b169fa3
tree718fb090b85c2ce61deb34757d006d0d683cdee4
parent1c214ab7f0251259fac9cc96fa9961c68096052e
mlx4: query netdevice to get initial MAC address

Querying the netdevice instead of deriving the port's MAC address from its
GID is less prone to errors. There is no guarantee that the GID will always
contain it nor that the algorithm won't change.

Signed-off-by: Or Ami <ora@mellanox.com>
Signed-off-by: Olga Shern <olgas@mellanox.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c