net/mlx5: E-Switch, Protect changing mode while adding rules
authorRoi Dayan <roid@nvidia.com>
Wed, 16 Sep 2020 07:11:47 +0000 (10:11 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:43 +0000 (16:48 -0700)
commit7dc84de98babc709910947b24e8cd1c2e01c7857
treec7a396949e22c182f1ee1a214a4549d7f4d0c757
parentc55479d0cb6a28029844d0e90730704a0fb5efd3
net/mlx5: E-Switch, Protect changing mode while adding rules

We re-use the native NIC port net device instance for the Uplink
representor, a driver currently cannot unbind TC setup callback
actively, hence protect changing E-Switch mode while adding rules.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c