]> 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)
commiteb335fe2d1e5c9c20bfa98439ab447336e2728d0
treefe20b58c147b23a3db1484504cb8edf790f9f5e8
parent66b8b39ba6a87b814b534d79e9de0c259408dc40
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