Patch "net/mlx5: Prevent setting multicast macs for VFs" has been added to the 4.9-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
net/mlx5: Prevent setting multicast macs for VFs
to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
net-mlx5-prevent-setting-multicast-macs-for-vfs.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Thu Jan 12 21:37:26 CET 2017
From: Mohamad Haj Yahia <[email protected]>
Date: Wed, 28 Dec 2016 14:58:37 +0200
Subject: net/mlx5: Prevent setting multicast macs for VFs
From: Mohamad Haj Yahia <[email protected]>
[ 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.
--- drivers/net/ethernet/mellanox/mlx5/core/eswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c +1 -1
@@ -1703,7 +1703,7 @@ int mlx5_eswitch_set_vport_mac(struct mlif (!ESW_ALLOWED (esw))return -EPERM ; -if (!LEGAL_VPORT (esw, vport)) +if (!LEGAL_VPORT (esw, vport) ||is_multicast_ether_addr (mac))return -EINVAL ;mutex_lock (&esw->state_lock);
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/net-mlx5e-don-t-sync-netdev-state-when-not-registered.patch queue-4.9/net-mlx5e-disable-netdev-after-close.patch queue-4.9/net-mlx5-prevent-setting-multicast-macs-for-vfs.patch