]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Split mac address setting function for using state_lock
authorParav Pandit <parav@mellanox.com>
Fri, 19 Jun 2020 03:32:54 +0000 (03:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 22:29:19 +0000 (15:29 -0700)
commit96a7689814528b78974bfb0a349fa1a1fa2de6f7
treee427e54492acf48e3f4b0b66d3296e618fc2630e
parent41e6e1c6c4b627533eb95e0f36867a7bca06e002
net/mlx5: Split mac address setting function for using state_lock

Refactor mac address setting function to let caller hold the necessary
state_lock mutex, so that subsequent patch and use this helper routine.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c