Skip to content

Commit

Permalink
accel/mlx5: Fix mkey cache clear for merged task
Browse files Browse the repository at this point in the history
That is a leftover of the platform driver rework.
Before we kept 2 tasks in the sequence and switched
to the decrypt task of CRC32C_AND_DECRYPT to clear
the mkey cache. But after refactoring, we saved all
necessary fields in one task and immidiately release
the 2nd task.

Signed-off-by: Alexey Marchuk <[email protected]>
Change-Id: I902015b303c6191a956687a826d5da13c1e8b7b6
  • Loading branch information
AlekseyMarchuk committed Aug 2, 2024
1 parent 543d9c5 commit eb72145
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions module/accel/mlx5/accel_mlx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3424,13 +3424,6 @@ accel_mlx5_task_clear_mkey_cache(struct accel_mlx5_task *task, struct accel_mlx5
if (task->base.cached_lkey) {
*task->base.cached_lkey = 0;
}
/* Clear the mkey cache when the decrypt task is merged into check CRC. */
if (task->mlx5_opcode == ACCEL_MLX5_OPC_CRC32C_AND_DECRYPT) {
next_task = TAILQ_NEXT(&task->base, seq_link);
if (next_task->cached_lkey) {
*next_task->cached_lkey = 0;
}
}
}

static void accel_mlx5_recover_qp(struct accel_mlx5_qp *qp);
Expand Down

0 comments on commit eb72145

Please sign in to comment.