]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6acc73c05bb12c0251da5a55b5d1c5eb32119c8d
treefe20b58c147b23a3db1484504cb8edf790f9f5e8
parentdddc3c54f96d4bd97ae6d07a96916ac4bc337615
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