net/mlx5: E-switch, Make vport setup/cleanup sequence symmetric
authorBodong Wang <bodong@mellanox.com>
Wed, 16 Oct 2019 16:19:34 +0000 (11:19 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 13 Mar 2020 23:26:08 +0000 (16:26 -0700)
commitd7c92cb56f7b3fde8e9c4adac0cfcb6db81ac860
treee28d5fd26c2d46a4ab613e915207a65ca11415b3
parent878a73318a92d7c21f7543da343e86d13eaa8841
net/mlx5: E-switch, Make vport setup/cleanup sequence symmetric

Vport enable and disable sequence is incorrect. It should be:
  enable()
  esw_vport_setup_acl,
  esw_vport_setup,
  esw_vport_enable_qos.

  disable()
  esw_vport_disable_qos,
  esw_vport_cleanup,
  esw_vport_cleanup_acl.

Instead of having two setup functions for port and acl, merge
acl setup to port setup function.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c