Skip to content

Commit e8ba688

Browse files
mosheshemesh2gregkh
authored andcommitted
net/mlx5: Fix fw tracer first block check
[ Upstream commit 4261edf ] While handling new traces, to verify it is not the first block being written, last_timestamp is checked. But instead of checking it is non zero it is verified to be zero. Fix to verify last_timestamp is not zero. Fixes: c71ad41 ("net/mlx5: FW tracer, events handling") Signed-off-by: Moshe Shemesh <[email protected]> Reviewed-by: Feras Daoud <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent fc4c53f commit e8ba688

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ static void mlx5_fw_tracer_handle_traces(struct work_struct *work)
691691

692692
while (block_timestamp > tracer->last_timestamp) {
693693
/* Check block override if it's not the first block */
694-
if (!tracer->last_timestamp) {
694+
if (tracer->last_timestamp) {
695695
u64 *ts_event;
696696
/* To avoid block override be the HW in case of buffer
697697
* wraparound, the time stamp of the previous block

0 commit comments

Comments
 (0)