mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 03:59:40 +02:00
net/mlx5: Warn when write combining is not supported
Warn if write combining is not supported, as it can impact latency. Add the warning message to be printed only when the driver actually run the test and detect unsupported state, rather than when inheriting parent's result for SFs. Signed-off-by: Maor Gottlieb <maorg@nvidia.com> Reviewed-by: Michael Guralnik <michaelgur@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/1752009387-13300-5-git-send-email-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
c0ca344d79
commit
d980f371b1
|
|
@ -378,6 +378,9 @@ static void mlx5_core_test_wc(struct mlx5_core_dev *mdev)
|
|||
mlx5_free_bfreg(mdev, &sq->bfreg);
|
||||
err_alloc_bfreg:
|
||||
kfree(sq);
|
||||
|
||||
if (mdev->wc_state == MLX5_WC_STATE_UNSUPPORTED)
|
||||
mlx5_core_warn(mdev, "Write combining is not supported\n");
|
||||
}
|
||||
|
||||
bool mlx5_wc_support_get(struct mlx5_core_dev *mdev)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user