Skip to content

Commit db561fe

Browse files
shayshyiSaeed Mahameed
authored andcommitted
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: 2d69356 ("net/mlx5: Add support for fw live patch event") Signed-off-by: Shay Drory <[email protected]> Reviewed-by: Moshe Shemesh <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 9965bbe commit db561fe

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/diag

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ static int mlx5_query_mtrc_caps(struct mlx5_fw_tracer *tracer)
6464
MLX5_GET(mtrc_cap, out, num_string_trace);
6565
tracer->str_db.num_string_db = MLX5_GET(mtrc_cap, out, num_string_db);
6666
tracer->owner = !!MLX5_GET(mtrc_cap, out, trace_owner);
67+
tracer->str_db.loaded = false;
6768

6869
for (i = 0; i < tracer->str_db.num_string_db; i++) {
6970
mtrc_cap_sp = MLX5_ADDR_OF(mtrc_cap, out, string_db_param[i]);

0 commit comments

Comments
 (0)