net/mlx5: E-Switch, Replace vport spin lock with synchronize_irq()
authorMohamad Haj Yahia <mohamad@mellanox.com>
Tue, 3 May 2016 14:13:55 +0000 (17:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 18:04:47 +0000 (14:04 -0400)
commit831cae1daead92c4b9c3e149c6bc14853902c204
tree239f74a29a6db506ed8425cfe5214cc1f01158ef
parentefdc810ba39dae0ccce9cb9c1c84ff9b0157ca43
net/mlx5: E-Switch, Replace vport spin lock with synchronize_irq()

Vport spin lock can be replaced with synchronize_irq() in the right
place, this will remove the need of locking inside irq context.
Locking in esw_enable_vport is not required since vport events are yet
to be enabled, and at esw_disable_vport it is sufficient to
synchronize_irq() to guarantee no further vport events handlers will be
scheduled.

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
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h