OSDN Git Service

net/mlx5: E-switch, Remove vport enabled check
authorParav Pandit <parav@nvidia.com>
Wed, 20 Oct 2021 04:56:01 +0000 (07:56 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:51 +0000 (20:31 -0800)
commitfcf8ec54b0477293ecf5a4a01bfe88d5dea6c8c0
tree14a2155780cbc3017f9ad35a3d8808bc389a5b47
parent819c319c8c919307fa764ff02a228c06e727501c
net/mlx5: E-switch, Remove vport enabled check

An eswitch vport of the devlink port is always enabled before a
devlink port is registered. And a eswitch vport is always disabled
after a devlink port is unregistered.
Hence avoid the vport enabled check in the devlink callback routine.
Such check is only applicable in the legacy SR-IOV callbacks.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Sunil Sudhakar Rani <sunrani@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c