Commit e0d6e662 authored by Shay Drory's avatar Shay Drory Committed by zhaoxiaoqiang11
Browse files

net/mlx5: fw_tracer, Clear load bit when freeing string DBs buffers

stable inclusion
from stable-v5.10.168
commit fac1fb80088ab9f6cae5a0480236d1d03fcfe002
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fac1fb80088ab9f6cae5a0480236d1d03fcfe002



----------------------------------------------------

[ Upstream commit db561fed ]

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: 2d693567 ("net/mlx5: Add support for fw live patch event")
Signed-off-by: default avatarShay Drory <shayd@nvidia.com>
Reviewed-by: default avatarMoshe Shemesh <moshe@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 2ac78a66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment