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)
commit2bb72e7e2abc6c8005baef4b35795616be2e0e4c
tree45bad80fb77912d75b92a0fb8d0375b78da45130
parent5c2aa8ae3a2ccb383647e3ade369b32e0710ef0b
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