]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-switch, Annotate termtbl_mutex mutex destroy
authorParav Pandit <parav@mellanox.com>
Sat, 14 Dec 2019 09:24:25 +0000 (03:24 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 13 Mar 2020 23:26:19 +0000 (16:26 -0700)
commitbbee727dadeafa4e7d24e40da4a3d4bb8c65dbde
tree45bad80fb77912d75b92a0fb8d0375b78da45130
parent9dc022d1e8e371aa9a9b6817c521a5af00a61f69
net/mlx5: E-switch, Annotate termtbl_mutex mutex destroy

Annotate mutex destroy to keep it symmetric to init sequence.
It should be destroyed after its users (representor netdevices) are
destroyed in below flow.

esw_offloads_disable()
  esw_offloads_unload_rep()

Hence, initialize the mutex before creating the representors which uses
it.

Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c