Skip to content

Commit 4261edf

Browse files
mosheshemesh2Saeed Mahameed
authored andcommitted
net/mlx5: Fix fw tracer first block check
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]>
1 parent bcaf109 commit 4261edf

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
@@ -718,7 +718,7 @@ static void mlx5_fw_tracer_handle_traces(struct work_struct *work)
718718

719719
while (block_timestamp > tracer->last_timestamp) {
720720
/* Check block override if it's not the first block */
721-
if (!tracer->last_timestamp) {
721+
if (tracer->last_timestamp) {
722722
u64 *ts_event;
723723
/* To avoid block override be the HW in case of buffer
724724
* wraparound, the time stamp of the previous block

0 commit comments

Comments
 (0)