]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Don't give VFs MAC addresses which are derived from the PF MAC
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 1 Aug 2013 16:55:00 +0000 (19:55 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2013 22:09:35 +0000 (15:09 -0700)
commitd96582e618ca8e09fdcc708e30a7203b1290abf7
treed406229143269e3e8861b8b6fd459db7261ae6b4
parentceb62442c9c663d26cb8d2df7ab351d3daa6ea20
net/mlx4_core: Don't give VFs MAC addresses which are derived from the PF MAC

If the user has not assigned a MAC address to a VM, then don't give it MAC which
is based on the PF one. The current derivation scheme is wrong and leads to VM
MAC collisions when the number of cards/hypervisors becomes big enough.

Instead, just give it zeros and let them figure out what to do with that.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c