]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfde665ada4279257a15084c4d756d7d4ce21f2ed
tree0be46cb310679c2cb156a1c94a85b646685698d1
parent91ff6fe96a1f59fd36dc26394771b5c8f4113128
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