]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit651100ae9e92d9d924b238baff979dfd56416e37
tree14a2155780cbc3017f9ad35a3d8808bc389a5b47
parent65b70566fb34f281d21c765974c65e5144fd9ffc
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