]> 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)
commit66200ae8ffb0b744142fb5f2d9bcec4c88434fb3
tree0be46cb310679c2cb156a1c94a85b646685698d1
parent2922a6a59d0af1055e3498eea90d1e41495b0aea
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