]> git.karo-electronics.de Git - linux-beck.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jan 2017 12:42:53 +0000 (13:42 +0100)
commit33c782dd15145746475758a8052bd698ae1a6e90
treebe8d6d7c402d8acd41e8beb67524f435dcbba6a2
parentb22c86ff8e78a74f4b1a531f671beb97278b138d
net/mlx5: Prevent setting multicast macs for VFs

[ Upstream commit ccce1700263d8b5b219359d04180492a726cea16 ]

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

Fixes: 77256579c6b4 ('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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c