net/mlx5e: Assign random MAC address if needed
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 10 Dec 2015 15:12:38 +0000 (17:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 05:15:23 +0000 (00:15 -0500)
commit108805fc196e001053e9e7c76f259977804dc0d6
tree0be46cb310679c2cb156a1c94a85b646685698d1
parent9bd0a185c2c48226a50e6e5b639edaa9e8ab6c51
net/mlx5e: Assign random MAC address if needed

Under SRIOV there might be a case where VFs are loaded
without pre-assigned MAC address. In this case, the VF
will randomize its own MAC.  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: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h