]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Prevent setting multicast macs for VFs
authorMohamad Haj Yahia <mohamad@mellanox.com>
Wed, 28 Dec 2016 12:58:37 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:36:52 +0000 (14:36 -0500)
commit40adefe3de0b273281d993e9404468955f39ed28
treed270bb86d3c14b203d623ef05ed620c25ac369ca
parent9f15eceae86c3e42500b7ce265afaad740737d66
net/mlx5: Prevent setting multicast macs for VFs

Need to check that VF mac address entered by the admin user is either
zero or unicast mac.
Multicast mac addresses are prohibited.

Fixes: 173fecbf7a1f ('net/mlx5: E-Switch, Introduce Vport administration functions')
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c