net/mlx4_en: Handle unassigned VF MAC address correctly
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 4 Jun 2013 05:13:28 +0000 (05:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jun 2013 19:58:24 +0000 (12:58 -0700)
commitef96f7d46ad86625237da8a35e812bdf7896e640
tree5ffd54f31569c2b74dcb471df51cf3c9188798a1
parent5efe5355f22fb9b7bb64d19809c0a75805e0ccb8
net/mlx4_en: Handle unassigned VF MAC address correctly

When a VF sense they didn't get MAC address, use random one. This will
address the case of administrator not assigning MAC to the VF through
the PF OS APIs and keep udev happy.

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