net/mlx5: Warn for devlink reload when there are VFs alive
authorLama Kayal <lkayal@nvidia.com>
Sun, 1 Aug 2021 11:57:16 +0000 (14:57 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 23:19:01 +0000 (16:19 -0700)
commit2b0247e220975fd0a9902eef1643f5003d323ef8
treefe20b58c147b23a3db1484504cb8edf790f9f5e8
parent98576013bf2831d7208e598043889db8c2d3665c
net/mlx5: Warn for devlink reload when there are VFs alive

When performing PF reload, VF can't communicate with FW until
it recovers and reloads as well.

Add a warning message when performing devlink reload while
VFs are still present. Thus, giving a notice of an unfavorable
behavior that might occur as a result of a consequential reloads
and cause interruption of VF recovery.

Signed-off-by: Lama Kayal <lkayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c