net/mlx5: Don't check vport->enabled in port ops
authorJiri Pirko <jiri@nvidia.com>
Thu, 1 Jun 2023 06:22:43 +0000 (08:22 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jul 2023 18:37:30 +0000 (11:37 -0700)
commit550449d8e3890b19a6d780cb5854af1ff0a8961b
treedf34e2057372053230a13982a4ee572b5669ad8b
parentb9335a757232e9ac03e5fc8ed71d834661b7a8ac
net/mlx5: Don't check vport->enabled in port ops

vport->enabled is always set for a vport for which a devlink port is
registered, therefore the checks in the ops are pointless.
Remove those.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c