]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5: fw_tracer, Clear load bit when freeing string DBs buffers
authorShay Drory <shayd@nvidia.com>
Mon, 9 Jan 2023 13:27:40 +0000 (15:27 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 03:01:06 +0000 (19:01 -0800)
commitdb561fed6b8fa3878e74d5df6512a4a38152b63e
treedf4ab46e70721653ebd6501001180f0f57eee372
parent9965bbebae59b3563a4d95e4aed121e8965dfdc2
net/mlx5: fw_tracer, Clear load bit when freeing string DBs buffers

Whenever the driver is reading the string DBs into buffers, the driver
is setting the load bit, but the driver never clears this bit.
As a result, in case load bit is on and the driver query the device for
new string DBs, the driver won't read again the string DBs.
Fix it by clearing the load bit when query the device for new string
DBs.

Fixes: 2d69356752ff ("net/mlx5: Add support for fw live patch event")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c